4 Replies Latest reply on Aug 16, 2011 7:22 AM by Ove Ranheim

    BeanManager tear down fails with JBoss 6 Final

    Ove Ranheim Novice

      My test cases are running fine with JSFUnit 2.0.0.Beta1, but I get an error on tear down. The test deployment seems unable to tear down the BeanManager properly.

       

      Remote6 profile deps: JBoss 6 Final (remote profile), Arquillian 1.0.0.Beta 4, Mojarra 2.0.3.b05, JSF 2.0.2-FCS, Weld core 1.1.0.Final.

       

      Added test.war libs: Seam Solder, Catch, Int, Faces, Conversation SPI, Config, Security; all CR1. And, PicketLink 1.5.0.Alpah02, PrimeFaces 2.2.1 and JSF API 2.0.2.

       

       

      {code}

      11:20:57,160 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHandler] invoke, payload: {DeploymentTargetID=names=[test.war], clientAddress=/127.0.0.1}, parameter: stop

      11:20:57,192 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Stopping jboss.j2ee:jar=test.war,name=ActiveUnitProducer,service=EJB3

      11:20:57,194 INFO  [org.jboss.ejb3.EJBContainer] STOPPED EJB: eris.services.dashboard.bean.ActiveUnitProducer ejbName: ActiveUnitProducer

      11:20:57,197 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Stopping jboss.j2ee:jar=test.war,name=DashboardManager,service=EJB3

      11:20:57,198 INFO  [org.jboss.ejb3.EJBContainer] STOPPED EJB: eris.services.dashboard.bean.DashboardManager ejbName: DashboardManager

      11:20:57,199 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] undeploy, ctxPath=/test

      11:20:57,203 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] Unexpected exception when attempting to tear down the Mojarra runtime: org.jboss.seam.solder.beanManager.BeanManagerUnavailableException: Failed to locate BeanManager using any of these providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)

          at org.jboss.seam.solder.beanManager.BeanManagerLocator.getBeanManager(BeanManagerLocator.java:91) [:3.0.0.CR1]

          at org.jboss.seam.solder.beanManager.BeanManagerAware.getBeanManager(BeanManagerAware.java:56) [:3.0.0.CR1]

          at org.jboss.seam.faces.event.AbstractListener.getListeners(AbstractListener.java:25) [:3.0.0.CR1]

          at org.jboss.seam.faces.event.DelegatingSystemEventListener.getEventListeners(DelegatingSystemEventListener.java:38) [:3.0.0.CR1]

          at org.jboss.seam.faces.event.DelegatingSystemEventListener.processEvent(DelegatingSystemEventListener.java:26) [:3.0.0.CR1]

          at javax.faces.event.SystemEvent.processListener(SystemEvent.java:102) [:2.0.3-]

          at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2040) [:2.0.3-]

          at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2016) [:2.0.3-]

          at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:298) [:2.0.3-]

          at org.jboss.weld.integration.webtier.jsf.ForwardingApplication.publishEvent(ForwardingApplication.java:330) [:6.0.0.Final]

          at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:679) [:2.0.3-]

          at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:316) [:2.0.3-]

          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3466) [:6.0.0.Final]

          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3975) [:6.0.0.Final]

          at org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1162) [:6.0.0.Final]

          at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4062) [:6.0.0.Final]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]

          at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) [:6.0.0.Final]

          at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) [:6.0.0.GA]

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performUndeployInternal(TomcatDeployment.java:551) [:6.0.0.Final]

          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performUndeploy(TomcatDeployment.java:526) [:6.0.0.Final]

          at org.jboss.web.deployers.AbstractWarDeployment.stop(AbstractWarDeployment.java:496) [:6.0.0.Final]

          at org.jboss.web.deployers.WebModule.stopModule(WebModule.java:133) [:6.0.0.Final]

          at org.jboss.web.deployers.WebModule.stop(WebModule.java:100) [:6.0.0.Final]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]

          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.GA]

          at $Proxy41.stop(Unknown Source)    at org.jboss.system.microcontainer.StartStopLifecycleAction.uninstallAction(StartStopLifecycleAction.java:74) [:2.2.0.GA]

          at org.jboss.system.microcontainer.StartStopLifecycleAction.uninstallAction(StartStopLifecycleAction.java:41) [:2.2.0.GA]

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleUninstallAction(SimpleControllerContextAction.java:79) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.uninstall(AccessControllerContextAction.java:131) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContextActions.uninstall(AbstractControllerContextActions.java:58) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:385) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:2078) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1624) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1472) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1537) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1472) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1537) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:948) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1968) [:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1001) [:2.2.0.GA]

          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:656) [:2.2.0.GA]

          at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]

          at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]

          at org.jboss.profileservice.plugins.deploy.actions.DeploymentStopAction.doPrepare(DeploymentStopAction.java:89) [:0.2.2]

          at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:101) [:0.2.2]

          at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

          at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.stopDeployments(AbstractDeployHandler.java:190) [:0.2.2]

          at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.stopDeployments(DeployHandlerDelegate.java:79) [:6.0.0.Final]

          at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:160) [:6.0.0.Final]

          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:898) [:6.0.0.Final]

          at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791) [:6.0.0.Final]

          at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744) [:6.0.0.Final]

          at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548) [:6.0.0.Final]

          at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234) [:6.0.0.Final]

       

      11:20:57,387 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] Stopping persistence unit persistence.unit:unitName=test.war#primary

      11:20:57,387 INFO  [org.hibernate.impl.SessionFactoryImpl] closing

      11:20:57,399 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] Running hbm2ddl schema export

      11:20:57,400 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] exporting generated schema to database

      11:20:57,404 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] schema export complete

      11:20:57,404 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.unit:unitName=test.war#primary

      11:20:57,405 INFO  [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

      11:20:57,405 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.unit:unitName=test.war#primary

      11:20:57,501 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Uninstalled org.jboss.weld.integration.instantiator.Jsr299BeanInstantiator@4c4ad5e5 from MC at org.jboss.ejb.bean.instantiator/test/test/ActiveUnitProducer

      11:20:57,502 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Uninstalled org.jboss.weld.integration.instantiator.Jsr299BeanInstantiator@2a61b4f2 from MC at org.jboss.ejb.bean.instantiator/test/test/DashboardManager

      11:20:59,429 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHandler] invoke, payload: {DeploymentTargetID=names=[test.war], clientAddress=/127.0.0.1}, parameter: remove

      {code}

       

      Any ideas?

       

      Cheers,

      Ove