4 Replies Latest reply on Nov 1, 2007 12:38 PM by Pete Muir

    JBoss AS 4.2.2 & Seam shutdown exception

    Kenneth Christensen Novice

      I'm using Seam 2.0.0.CR3.

      /Users/kec/Dev/jboss-4.2.2.GA/bin/shutdown.sh -s jnp://localhost:1099 -S
      22:56:45,723 INFO [Server] Shutting down the server, blockingShutdown: false
      22:56:45,724 INFO [Server] Server exit(0) called
      22:56:45,725 INFO [Server] Runtime shutdown hook called, forceHalt: true
      22:56:45,726 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      22:56:45,726 INFO [TomcatDeployer] undeploy, ctxPath=/workoutjournal, warUrl=.../deploy/workoutjournal.ear/workoutjournal-web.war/
      Shutdown message has been posted to the server.
      Server shutdown may take a while - check logfiles for completion
      22:56:45,729 INFO [[/workoutjournal]] Closing Spring root WebApplicationContext
      22:56:45,729 INFO [XmlWebApplicationContext] Closing application context [Root WebApplicationContext]
      22:56:45,729 INFO [DefaultListableBeanFactory] Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,transactionManager,authenticationDao,authenticationListener,filterChainProxy,httpSessionContextIntegrationFilter,logoutFilter,authenticationProcessingFilter,rememberMeProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor,rememberMeServices,authenticationProcessingFilterEntryPoint,roleVoter,httpRequestAccessDecisionManager,cacheManager,userCacheBackend,userCache,saltSource,passwordEncoder,daoAuthenticationProvider,anonymousAuthenticationProvider,rememberMeAuthenticationProvider,authenticationManager]; root of BeanFactory hierarchy}
      22:56:45,729 INFO [EhCacheManagerFactoryBean] Shutting down EHCache CacheManager
      22:56:45,730 INFO [LocalSessionFactoryBean] Closing Hibernate SessionFactory
      22:56:45,730 INFO [SessionFactoryImpl] closing
      22:56:45,744 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.AccountBean ejbName: AccountBean
      22:56:45,746 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=AccountBean,service=EJB3 is not registered
      22:56:45,746 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.FoodBean ejbName: FoodBean
      22:56:45,747 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.RecipeBean ejbName: RecipeBean
      22:56:45,748 WARN [StatefulDelegateWrapper] Stopping failed jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=CommonBean,service=EJB3
      java.lang.RuntimeException: java.lang.IllegalStateException: Attempted to invoke a Seam component outside the an initialized application
       at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.preDestroy(LifecycleInterceptorHandler.java:135)
       at org.jboss.ejb3.EJBContainer.invokePreDestroy(EJBContainer.java:624)
       at org.jboss.ejb3.AbstractPool.remove(AbstractPool.java:207)
       at org.jboss.ejb3.InfinitePool.destroy(InfinitePool.java:42)
       at org.jboss.ejb3.ThreadlocalPool.destroy(ThreadlocalPool.java:68)
       at org.jboss.ejb3.EJBContainer.stop(EJBContainer.java:592)
       at org.jboss.ejb3.SessionContainer.stop(SessionContainer.java:183)
       at org.jboss.ejb3.stateful.StatefulContainer.stop(StatefulContainer.java:116)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.ejb3.ServiceDelegateWrapper.stopService(ServiceDelegateWrapper.java:119)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.stop(Unknown Source)
       at org.jboss.system.ServiceController.stop(ServiceController.java:508)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy69.stop(Unknown Source)
       at org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstraction.java:175)
       at org.jboss.ejb3.JmxKernelAbstraction.uninstall(JmxKernelAbstraction.java:202)
       at org.jboss.ejb3.Ejb3Deployment.stop(Ejb3Deployment.java:661)
       at org.jboss.ejb3.Ejb3Module.stopService(Ejb3Module.java:107)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.stop(Unknown Source)
       at org.jboss.system.ServiceController.stop(ServiceController.java:508)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy33.stop(Unknown Source)
       at org.jboss.ejb3.EJB3Deployer.stop(EJB3Deployer.java:532)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
       at org.jboss.wsf.container.jboss42.DeployerInterceptor.stop(DeployerInterceptor.java:98)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.stop(SubDeployerInterceptorSupport.java:196)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:99)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy34.stop(Unknown Source)
       at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:667)
       at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:659)
       at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:638)
       at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:516)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:1058)
       at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:1033)
       at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:996)
      Caused by: java.lang.IllegalStateException: Attempted to invoke a Seam component outside the an initialized application
       at org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36)
       at org.jboss.seam.contexts.Lifecycle.beginCall(Lifecycle.java:84)
       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:113)
       at org.jboss.seam.intercept.RootInterceptor.invokeAndHandle(RootInterceptor.java:84)
       at org.jboss.seam.intercept.SessionBeanInterceptor.preDestroy(SessionBeanInterceptor.java:68)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationContextImpl.java:131)
       at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.preDestroy(LifecycleInterceptorHandler.java:131)
       ... 103 more
      22:56:45,755 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=CommonBean,service=EJB3 is not registered
      22:56:45,757 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.CountryBean ejbName: CountryBean
      22:56:45,757 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=CountryBean,service=EJB3 is not registered
      22:56:45,757 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=FoodBean,service=EJB3 is not registered
      22:56:45,760 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.IpBean ejbName: IpBean
      22:56:45,760 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=IpBean,service=EJB3 is not registered
      22:56:45,760 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=RecipeBean,service=EJB3 is not registered
      22:56:45,762 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.UserBean ejbName: UserBean
      22:56:45,763 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=UserBean,service=EJB3 is not registered
      22:56:45,763 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.units:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,unitName=WorkoutJournal
      22:56:45,763 INFO [SessionFactoryImpl] closing
      22:56:45,763 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.units:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,unitName=WorkoutJournal
      22:56:45,763 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      22:56:45,763 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.units:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,unitName=WorkoutJournal
      22:56:45,764 WARN [JmxKernelAbstraction] persistence.units:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,unitName=WorkoutJournal is not registered
      22:56:45,766 INFO [EJBContainer] STOPPED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
      22:56:45,766 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=jboss-seam-2.0.0.CR3.jar,name=TimerServiceDispatcher,service=EJB3 is not registered
      22:56:45,767 INFO [EJBContainer] STOPPED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
      22:56:45,768 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=jboss-seam-2.0.0.CR3.jar,name=EjbSynchronizations,service=EJB3 is not registered
      22:56:45,771 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/Users/kec/Dev/jboss-4.2.2.GA/server/default/deploy/workoutjournal.ear/
      22:56:45,771 INFO [EARDeployer] Undeployed J2EE application: file:/Users/kec/Dev/jboss-4.2.2.GA/server/default/deploy/workoutjournal.ear/
      22:56:45,774 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      22:56:45,799 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PostgreSQLDS' from JNDI name 'java:PostgreSQLDS'
      22:56:45,810 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' from JNDI name 'java:JmsXA'
      22:56:45,813 INFO [testTopic] Unbinding JNDI name: topic/testTopic
      22:56:45,814 INFO [securedTopic] Unbinding JNDI name: topic/securedTopic
      22:56:45,814 INFO [testDurableTopic] Unbinding JNDI name: topic/testDurableTopic
      22:56:45,814 INFO [testQueue] Unbinding JNDI name: queue/testQueue
      22:56:45,816 INFO [A] Unbinding JNDI name: queue/A
      22:56:45,817 INFO [B] Unbinding JNDI name: queue/B
      22:56:45,817 INFO [C] Unbinding JNDI name: queue/C
      22:56:45,817 INFO [D] Unbinding JNDI name: queue/D
      22:56:45,817 INFO [ex] Unbinding JNDI name: queue/ex
      22:56:45,818 INFO [DLQ] Unbinding JNDI name: queue/DLQ
      22:56:45,819 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' from JNDI name 'java:DefaultDS'
      22:56:46,791 INFO [HypersonicDatabase] Database standalone closed clean
      22:56:46,798 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
      22:56:46,798 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
      22:56:46,799 INFO [SimpleThreadPool] There are still 35 worker threads active. See javadoc runInThread(Runnable) for a possible explanation
      22:56:46,799 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
      22:56:46,819 INFO [MailService] Mail service 'java:/Mail' removed from JNDI
      22:56:46,822 INFO [TomcatDeployer] undeploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      22:56:46,878 INFO [Http11Protocol] Pausing Coyote HTTP/1.1 on http-0.0.0.0%2F0.0.0.0-8080
      22:56:46,901 INFO [AjpProtocol] Pausing Coyote AJP/1.3 on ajp-0.0.0.0%2F0.0.0.0-8009
      Disconnected from server
      22:56:47,901 INFO [StandardService] Stopping service jboss.web
      22:56:47,920 INFO [Http11Protocol] Stopping Coyote HTTP/1.1 on http-0.0.0.0%2F0.0.0.0-8080
      22:56:47,921 INFO [AjpProtocol] Stopping Coyote AJP/1.3 on ajp-0.0.0.0%2F0.0.0.0-8009
      22:56:47,923 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
      22:56:47,924 INFO [TomcatDeployer] undeploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      22:56:47,924 INFO [TomcatDeployer] undeploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
      22:56:47,925 INFO [TomcatDeployer] undeploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      22:56:48,549 INFO [TransactionManagerService] Stopping recovery manager
      22:56:48,582 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM
      


      Works fine with JBoss AS 4.2.1 AS:

      /Users/kec/Dev/jboss-4.2.1.GA/bin/shutdown.sh -s jnp://localhost:1099 -S
      22:59:37,137 INFO [Server] Shutting down the server, blockingShutdown: false
      22:59:37,138 INFO [Server] Server exit(0) called
      22:59:37,139 INFO [Server] Runtime shutdown hook called, forceHalt: true
      22:59:37,139 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      22:59:37,140 INFO [TomcatDeployer] undeploy, ctxPath=/workoutjournal, warUrl=.../deploy/workoutjournal.ear/workoutjournal-web.war/
      Shutdown message has been posted to the server.
      Server shutdown may take a while - check logfiles for completion
      22:59:37,142 INFO [[/workoutjournal]] Closing Spring root WebApplicationContext
      22:59:37,142 INFO [XmlWebApplicationContext] Closing application context [Root WebApplicationContext]
      22:59:37,143 INFO [DefaultListableBeanFactory] Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,transactionManager,authenticationDao,authenticationListener,filterChainProxy,httpSessionContextIntegrationFilter,logoutFilter,authenticationProcessingFilter,rememberMeProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor,rememberMeServices,authenticationProcessingFilterEntryPoint,roleVoter,httpRequestAccessDecisionManager,cacheManager,userCacheBackend,userCache,saltSource,passwordEncoder,daoAuthenticationProvider,anonymousAuthenticationProvider,rememberMeAuthenticationProvider,authenticationManager]; root of BeanFactory hierarchy}
      22:59:37,143 INFO [EhCacheManagerFactoryBean] Shutting down EHCache CacheManager
      22:59:37,143 INFO [LocalSessionFactoryBean] Closing Hibernate SessionFactory
      22:59:37,143 INFO [SessionFactoryImpl] closing
      22:59:37,162 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.AccountBean ejbName: AccountBean
      22:59:37,163 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=AccountBean,service=EJB3 is not registered
      22:59:37,164 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.FoodBean ejbName: FoodBean
      22:59:37,165 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.RecipeBean ejbName: RecipeBean
      22:59:37,165 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.CommonBean ejbName: CommonBean
      22:59:37,166 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=CommonBean,service=EJB3 is not registered
      22:59:37,166 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.CountryBean ejbName: CountryBean
      22:59:37,167 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=CountryBean,service=EJB3 is not registered
      22:59:37,168 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=FoodBean,service=EJB3 is not registered
      22:59:37,171 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.IpBean ejbName: IpBean
      22:59:37,171 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=IpBean,service=EJB3 is not registered
      22:59:37,171 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=RecipeBean,service=EJB3 is not registered
      22:59:37,173 INFO [EJBContainer] STOPPED EJB: com.mediatorsystems.workoutjournal.service.UserBean ejbName: UserBean
      22:59:37,173 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,name=UserBean,service=EJB3 is not registered
      22:59:37,173 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.units:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,unitName=WorkoutJournal
      22:59:37,174 INFO [SessionFactoryImpl] closing
      22:59:37,174 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.units:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,unitName=WorkoutJournal
      22:59:37,174 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      22:59:37,174 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.units:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,unitName=WorkoutJournal
      22:59:37,175 WARN [JmxKernelAbstraction] persistence.units:ear=workoutjournal.ear,jar=workoutjournal-ejb.jar,unitName=WorkoutJournal is not registered
      22:59:37,177 INFO [EJBContainer] STOPPED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
      22:59:37,177 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=jboss-seam-2.0.0.CR3.jar,name=TimerServiceDispatcher,service=EJB3 is not registered
      22:59:37,178 INFO [EJBContainer] STOPPED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
      22:59:37,178 WARN [JmxKernelAbstraction] jboss.j2ee:ear=workoutjournal.ear,jar=jboss-seam-2.0.0.CR3.jar,name=EjbSynchronizations,service=EJB3 is not registered
      22:59:37,181 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/Users/kec/Dev/jboss-4.2.1.GA/server/default/deploy/workoutjournal.ear/
      22:59:37,182 INFO [EARDeployer] Undeployed J2EE application: file:/Users/kec/Dev/jboss-4.2.1.GA/server/default/deploy/workoutjournal.ear/
      22:59:37,185 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      22:59:37,210 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PostgreSQLDS' from JNDI name 'java:PostgreSQLDS'
      22:59:37,217 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' from JNDI name 'java:JmsXA'
      22:59:37,221 INFO [testTopic] Unbinding JNDI name: topic/testTopic
      22:59:37,221 INFO [securedTopic] Unbinding JNDI name: topic/securedTopic
      22:59:37,222 INFO [testDurableTopic] Unbinding JNDI name: topic/testDurableTopic
      22:59:37,222 INFO [testQueue] Unbinding JNDI name: queue/testQueue
      22:59:37,223 INFO [A] Unbinding JNDI name: queue/A
      22:59:37,224 INFO [B] Unbinding JNDI name: queue/B
      22:59:37,224 INFO [C] Unbinding JNDI name: queue/C
      22:59:37,224 INFO [D] Unbinding JNDI name: queue/D
      22:59:37,225 INFO [ex] Unbinding JNDI name: queue/ex
      22:59:37,226 INFO [DLQ] Unbinding JNDI name: queue/DLQ
      22:59:37,226 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' from JNDI name 'java:DefaultDS'
      22:59:38,136 INFO [HypersonicDatabase] Database standalone closed clean
      22:59:38,143 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
      22:59:38,143 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
      22:59:38,144 INFO [SimpleThreadPool] There are still 43 worker threads active. See javadoc runInThread(Runnable) for a possible explanation
      22:59:38,145 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
      22:59:38,163 INFO [MailService] Mail service 'java:/Mail' removed from JNDI
      22:59:38,168 INFO [TomcatDeployer] undeploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      22:59:38,219 INFO [Http11Protocol] Pausing Coyote HTTP/1.1 on http-0.0.0.0%2F0.0.0.0-8080
      22:59:38,241 INFO [AjpProtocol] Pausing Coyote AJP/1.3 on ajp-0.0.0.0%2F0.0.0.0-8009
      Disconnected from server
      22:59:39,241 INFO [StandardService] Stopping service jboss.web
      22:59:39,256 INFO [Http11Protocol] Stopping Coyote HTTP/1.1 on http-0.0.0.0%2F0.0.0.0-8080
      22:59:39,257 INFO [AjpProtocol] Stopping Coyote AJP/1.3 on ajp-0.0.0.0%2F0.0.0.0-8009
      22:59:39,258 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
      22:59:39,259 INFO [TomcatDeployer] undeploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      22:59:39,260 INFO [TomcatDeployer] undeploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp47723jbossws-context-exp.war/
      22:59:39,262 INFO [TomcatDeployer] undeploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      22:59:39,284 INFO [SnmpAgentService] SNMP agent stopped
      22:59:41,782 INFO [TransactionManagerService] Stopping recovery manager
      22:59:41,871 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM
      


      Is this a Seam or JBoss AS 4.2.2 problem?

      /Kenneth


        • 1. Re: JBoss AS 4.2.2 & Seam shutdown exception
          Joshua Jackson Master

          Based on the log it is the problem with EJB3. AFAIK, JBoss 4.2.2 has a major restructuration on EJB3 which mostly is done by the Seam team.

          • 2. Re: JBoss AS 4.2.2 & Seam shutdown exception
            Pete Muir Master

            Post the code for the SFSB causing the exception.

            • 3. Re: JBoss AS 4.2.2 & Seam shutdown exception
              Kenneth Christensen Novice

               

              package com.mediatorsystems.workoutjournal.service;
              
              import org.jboss.seam.ScopeType;
              import org.jboss.seam.international.LocaleSelector;
              import org.jboss.seam.annotations.*;
              import org.jboss.seam.log.Log;
              
              import javax.ejb.EJB;
              import javax.ejb.Remove;
              import javax.ejb.Stateful;
              import javax.persistence.EntityManager;
              import javax.persistence.PersistenceContext;
              import javax.persistence.PersistenceContextType;
              import javax.persistence.Query;
              import java.util.List;
              
              /**
               * @author Kenneth Christensen
               * Copyright (c) 2006, 2007 Mediator Systems ApS. All rights reserved.
               */
              @Stateful
              @Name("commonBean")
              @Scope(ScopeType.SESSION)
              public class CommonBean implements CommonLocal {
               @Logger
               private Log log;
              
               @PersistenceContext(type = PersistenceContextType.EXTENDED)
               private EntityManager em;
              
               @In
               private LocaleSelector localeSelector;
              
               @EJB
               private UserLocal userBean;
              
               public boolean existByName(String queryName, String name) {
               Query query = em.createNamedQuery(queryName);
               query.setParameter("userId", userBean.getUserFromSession().getId())
               .setParameter("language", localeSelector.getLanguage())
               .setParameter("nameLowercase", name.toLowerCase());
              
               return (Long) query.getSingleResult() > 0;
               }
              
               public Object loadByName(String queryName, String name) {
               return em.createNamedQuery(queryName)
               .setParameter("name", name)
               .setParameter("nameLowercase", name.toLowerCase())
               .setParameter("userId", userBean.getUserFromSession().getId())
               .getSingleResult();
               }
              
               public Object[] findName(String queryPrefixName, boolean ownByUser, String prefix, Object category,
               int fetchDataSize, int pagingIndex) {
               log.debug("Prefix: #0 Category: #1 Fetch Data Size: #2 Paging Index: #3",
               prefix, category, fetchDataSize, pagingIndex);
              
               Query query;
               Object result[] = new Object[2];
              
               if (pagingIndex > -1) {
               StringBuffer queryName = new StringBuffer();
               queryName.append(queryPrefixName);
              
               if (category != null) {
               queryName.append(".countByLanguageAndCategoryAndName");
               if (ownByUser) {
               queryName.append("AndOwnByUser");
               }
              
               query = em.createNamedQuery(queryName.toString()).setParameter("category", category);
               } else {
               queryName.append(".countByLanguageAndName");
               if (ownByUser) {
               queryName.append("AndOwnByUser");
               }
              
               query = em.createNamedQuery(queryName.toString());
               }
              
               query.setParameter("userId", userBean.getUserFromSession().getId())
               .setParameter("language", localeSelector.getLanguage())
               .setParameter("nameLowercase",
               prefix.trim().length() > 0 ? prefix.toLowerCase() + "%" : prefix);
              
               result[0] = query.getSingleResult();
               } else {
               pagingIndex = 0;
               }
              
               StringBuffer queryName = new StringBuffer();
               queryName.append(queryPrefixName);
              
               if (category != null) {
               queryName.append(".findByLanguageAndCategoryAndName");
               if (ownByUser) {
               queryName.append("AndOwnByUser");
               }
              
               query = em.createNamedQuery(queryName.toString()).setParameter("category", category);
               } else {
               queryName.append(".findByLanguageAndName");
               if (ownByUser) {
               queryName.append("AndOwnByUser");
               }
              
               query = em.createNamedQuery(queryName.toString());
               }
              
               query.setParameter("userId", userBean.getUserFromSession().getId())
               .setParameter("language", localeSelector.getLanguage())
               .setParameter("nameLowercase",
               prefix.trim().length() > 0 ? prefix.toLowerCase() + "%" : prefix)
               .setFirstResult(fetchDataSize * pagingIndex)
               .setMaxResults(fetchDataSize);
              
               result[1] = query.getResultList();
              
               log.debug("Found #0 name(s) with prefix: #1 Category: #2",
               result[0] != null ? result[0] : ((List) result[1]).size(), prefix, category);
              
               return result;
               }
              
               public void detach() {
               em.clear();
               }
              
               @Remove @Destroy
               public void destroy() {
               }
              }
              


              • 4. Re: JBoss AS 4.2.2 & Seam shutdown exception
                Pete Muir Master

                Please file an issue in jira.