0 Replies Latest reply: Dec 10, 2009 4:38 PM by Wolfgang Knauf RSS

6.0.0M1: shutdown error with JSR88 deployed app

Wolfgang Knauf Master

Hi,

I deployed a simple app (EAR with EJB and web module) to JBoss 6.0.0M1 through JSR88. This works fine.

But if I leave the app deployed and stop the server (using Eclipse), this results in an exception on the console (server shuts down anyway). Here is the full shutdown snippet from server.log:

2009-12-10 22:35:39,019 INFO [org.jboss.system.server.jmx.JMXKernel] (Thread-20) Server exit called, exiting the JVM now!
2009-12-10 22:35:39,050 INFO [STDOUT] (Thread-1) Posting Shutdown Request to the server...
2009-12-10 22:35:39,050 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-21) Stopping: JBossAS [6.0.0.M1 (build: SVNTag=JBoss_6_0_0_M1 date=200912040958)]
2009-12-10 22:35:39,050 INFO [org.apache.coyote.http11.Http11Protocol] (Thread-21) Pausing Coyote HTTP/1.1 on http-127.0.0.1-8080
2009-12-10 22:35:39,097 INFO [org.apache.coyote.http11.Http11Protocol] (Thread-21) Stopping Coyote HTTP/1.1 on http-127.0.0.1-8080
2009-12-10 22:35:39,128 INFO [org.apache.coyote.ajp.AjpProtocol] (Thread-21) Pausing Coyote AJP/1.3 on ajp-127.0.0.1-8009
2009-12-10 22:35:39,128 INFO [org.apache.coyote.ajp.AjpProtocol] (Thread-21) Stopping Coyote AJP/1.3 on ajp-127.0.0.1-8009
2009-12-10 22:35:39,144 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-21) undeploy, ctxPath=/jmx-console
2009-12-10 22:35:39,159 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-21) undeploy, ctxPath=/
2009-12-10 22:35:39,175 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-21) undeploy, ctxPath=/admin-console
2009-12-10 22:35:39,269 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (Thread-21) Unbound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' from JNDI name 'java:JmsXA'
2009-12-10 22:35:39,284 INFO [org.jboss.ejb3.session.SessionSpecContainer] (Thread-21) Stopping jboss.j2ee:ear=Stateless.ear,jar=StatelessEJB.jar,name=GeometricModelBean,service=EJB3
2009-12-10 22:35:39,300 INFO [org.jboss.ejb3.EJBContainer] (Thread-21) STOPPED EJB: de.fhw.komponentenarchitekturen.knauf.stateless.GeometricModelBean ejbName: GeometricModelBean
2009-12-10 22:35:39,347 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactory] (Thread-21) org.jboss.jms.server.connectionfactory.ConnectionFactory@12d8ca1 undeployed
2009-12-10 22:35:39,347 INFO [org.jboss.jms.server.destination.QueueService] (Thread-21) Queue[/queue/DLQ] stopped
2009-12-10 22:35:39,347 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactory] (Thread-21) org.jboss.jms.server.connectionfactory.ConnectionFactory@dc711 undeployed
2009-12-10 22:35:39,347 INFO [org.jboss.jms.server.destination.QueueService] (Thread-21) Queue[/queue/ExpiryQueue] stopped
2009-12-10 22:35:39,347 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactory] (Thread-21) org.jboss.jms.server.connectionfactory.ConnectionFactory@13a1b2 undeployed
2009-12-10 22:35:39,363 INFO [org.jboss.jms.server.ServerPeer] (Thread-21) JMS ServerPeer[0] stopped
2009-12-10 22:35:39,363 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (Thread-21) Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' from JNDI name 'java:DefaultDS'
2009-12-10 22:35:39,659 INFO [org.jboss.jdbc.HypersonicDatabase] (Thread-21) Database standalone closed clean
2009-12-10 22:35:39,659 INFO [org.quartz.core.QuartzScheduler] (Thread-21) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
2009-12-10 22:35:39,659 INFO [org.quartz.core.QuartzScheduler] (Thread-21) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
2009-12-10 22:35:39,659 INFO [org.quartz.simpl.SimpleThreadPool] (Thread-21) There are still 38 worker threads active. See javadoc runInThread(Runnable) for a possible explanation
2009-12-10 22:35:39,659 INFO [org.quartz.core.QuartzScheduler] (Thread-21) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
2009-12-10 22:35:39,691 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-21) undeploy, ctxPath=/invoker
2009-12-10 22:35:39,691 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-21) undeploy, ctxPath=/web-console
2009-12-10 22:35:39,706 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-21) undeploy, ctxPath=/jbossws
2009-12-10 22:35:39,706 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-21) undeploy, ctxPath=/StatelessWeb
2009-12-10 22:35:39,706 INFO [org.apache.catalina.core.StandardService] (Thread-21) Stopping service jboss.web
2009-12-10 22:35:39,722 INFO [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (Thread-21) Stopping transaction recovery manager
2009-12-10 22:35:39,738 INFO [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (Thread-21) Destroying TransactionManagerService
2009-12-10 22:35:40,081 INFO [org.jboss.mail.MailService] (Thread-21) Mail service 'java:/Mail' removed from JNDI
2009-12-10 22:35:42,300 INFO [org.jboss.ejb3.clientmodule.ClientENCInjectionContainer] (Thread-21) STOPPED CLIENT ENC CONTAINER: StatelessClient
2009-12-10 22:35:42,300 ERROR [org.jboss.ejb3.deployers.Ejb3ClientDeployer] (Thread-21) Error during undeploy: vfszip:/C:/temp/jboss-6.0.0.M1/server/default/tmp/jsr88/Stateless.ear/StatelessClient.jar/
java.lang.IllegalStateException: BaseClassLoader@184b3b{vfsfile:/C:/temp/jboss-6.0.0.M1/server/default/conf/jboss-service.xml} classLoader is not connected to a domain (probably undeployed?) for class java.net.MulticastSocket
 at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:800)
 at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:445)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1627)
 at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1804)
 at org.jnp.interfaces.NamingContext.unbind(NamingContext.java:864)
 at javax.naming.InitialContext.unbind(Unknown Source)
 at org.jboss.util.naming.Util.unbind(Util.java:151)
 at org.jboss.util.naming.Util.unbind(Util.java:141)
 at org.jboss.ejb3.deployers.Ejb3ClientDeployer.undeploy(Ejb3ClientDeployer.java:307)
 at org.jboss.ejb3.deployers.Ejb3ClientDeployer.undeploy(Ejb3ClientDeployer.java:61)
 at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.undeploy(AbstractSimpleVFSRealDeployer.java:66)
 at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalUndeploy(AbstractSimpleRealDeployer.java:69)
 at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:112)
 at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:204)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1478)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1385)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1365)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1340)
 at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:354)
 at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1666)
 at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1277)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:828)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:696)
 at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:676)
 at org.jboss.deployers.plugins.main.MainDeployerImpl.shutdown(MainDeployerImpl.java:791)
 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.shutdown(ProfileServiceBootstrap.java:361)
 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.shutdown(ProfileServiceBootstrap.java:97)
 at org.jboss.bootstrap.impl.base.server.AbstractServer.shutdownBootstraps(AbstractServer.java:892)
 at org.jboss.bootstrap.impl.base.server.AbstractServer.shutdown(AbstractServer.java:309)
 at org.jboss.Main$ShutdownHook$1.run(Main.java:899)
2009-12-10 22:35:42,753 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-21) Stopped: JBossAS [6.0.0.M1 (build: SVNTag=JBoss_6_0_0_M1 date=200912040958)] in 3s:703ms


This does not happen, if the app file is copied to "deploy".

Is this worth a JIRA ;-)?

Best regards

Wolfgang