New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[appserver-io/appserver] Servlet Engine not starting, when an application registers the same datasource twice #1029

Closed
AW3i opened this Issue Aug 18, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@AW3i
Contributor

AW3i commented Aug 18, 2016

When you register a datasource in a single application in the appserver twice,
the appserver throws an exception and interrupts the program flow,
thus the ServletEngine is not being loaded,
making every application deployed with the appserver return a 404 not found error.

  • Reproducible in
    [x] Mac OS X 10.11.5
    [x] Debian GNU/Linux 8.5
  • Appserver version
    [x] 1.1.2-188
  • Exception thrown
'Exception' with message 'A value with name php:env/combined-appserver/ds/appserver.io-example-application has already been bound to naming directory php:' in /opt/appserver/src/AppserverIo/Appserver/Naming/NamingDirectory.php:138
Stack trace:
#0 /opt/appserver/src/AppserverIo/Appserver/Core/GenericDeployment.php(138): AppserverIo\Appserver\Naming\NamingDirectory->bind('php:env/combine...', Object(AppserverIo\Appserver\Core\Api\Node\DatasourceNode))
#1 /opt/appserver/src/AppserverIo/Appserver/Core/GenericDeployment.php(72): AppserverIo\Appserver\Core\GenericDeployment->deployDatasources()
#2 /opt/appserver/src/AppserverIo/Appserver/Core/Listeners/DeployApplicationsListener.php(78): AppserverIo\Appserver\Core\GenericDeployment->deploy()
#3 [internal function]: AppserverIo\Appserver\Core\Listeners\DeployApplicationsListener->handle(Object(League\Event\Event), 5)
#4 /opt/appserver/vendor/league/event/src/Emitter.php(217): call_user_func_array(Array, Array)
#5 /opt/appserver/vendor/league/event/src/Emitter.php(169): League\Event\Emitter->invokeListeners('enter.runlevel....', Object(League\Event\Event), Array)
#6 /opt/appserver/src/AppserverIo/Appserver/Core/ApplicationServer.php(525): League\Event\Emitter->emit('enter.runlevel....', 5)
#7 {main}

Next exception 'AppserverIo\Psr\Naming\NamingException' with message 'Cant't bind php:env/combined-appserver/ds/appserver.io-example-application to naming directory php:' in /opt/appserver/src/AppserverIo/Appserver/Naming/NamingDirectory.php:141
Stack trace:
#0 /opt/appserver/src/AppserverIo/Appserver/Core/GenericDeployment.php(138): AppserverIo\Appserver\Naming\NamingDirectory->bind('php:env/combine...', Object(AppserverIo\Appserver\Core\Api\Node\DatasourceNode))
#1 /opt/appserver/src/AppserverIo/Appserver/Core/GenericDeployment.php(72): AppserverIo\Appserver\Core\GenericDeployment->deployDatasources()
#2 /opt/appserver/src/AppserverIo/Appserver/Core/Listeners/DeployApplicationsListener.php(78): AppserverIo\Appserver\Core\GenericDeployment->deploy()
#3 [internal function]: AppserverIo\Appserver\Core\Listeners\DeployApplicationsListener->handle(Object(League\Event\Event), 5)
#4 /opt/appserver/vendor/league/event/src/Emitter.php(217): call_user_func_array(Array, Array)
#5 /opt/appserver/vendor/league/event/src/Emitter.php(169): League\Event\Emitter->invokeListeners('enter.runlevel....', Object(League\Event\Event), Array)
#6 /opt/appserver/src/AppserverIo/Appserver/Core/ApplicationServer.php(525): League\Event\Emitter->emit('enter.runlevel....', 5)
#7 {main} []

@wagnert wagnert added the bug label Sep 13, 2016

@wagnert wagnert added this to the Release 1.1.3 "Iron Knight" milestone Sep 13, 2016

@wagnert wagnert self-assigned this Sep 13, 2016

wagnert added a commit to wagnert/appserver that referenced this issue Sep 13, 2016

@wagnert wagnert closed this in #1030 Sep 19, 2016

AW3i added a commit to AW3i/appserver that referenced this issue Oct 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment