2 Replies Latest reply on Sep 21, 2011 8:44 AM by Tim Haley

    Are dependencies honored during JBoss AS6.1 shutdown?

    Tim Haley Newbie

      I have an EJB3 @singleton @startup bean with a @PostConstruct and a @PreDestroy method.  It has dependencies on a number of EJB 2.1 beans as well as a JMS ConnectionFactory.  Dependencies have also been placed in the jboss.xml file for all of the EJB2.1 beans. The EJBs and JMS ConnectionFactory are available to the @PostConstruct method, but they don't appear to be available to the @PreDestroy method. I would have expected the dependencies to be honored during shutdown so I can perform clean up routines before the system shut's down. What is the expected behavior? 

       

      My EJB class:

       

      {code}

      package com.xxx.system.ejbvendor.jboss;

       

      import javax.annotation.PostConstruct;

      import javax.annotation.PreDestroy;

      import javax.annotation.security.RunAs;

      import javax.ejb.Singleton;

      import javax.ejb.Startup;

      import javax.ejb.TransactionManagement;

      import javax.ejb.TransactionManagementType;

       

      import com.xxx.common.ejb.XXXEJB;

       

      /**

      * Singleton Bean implementation class Lifecycle

      */

      @org.jboss.ejb3.annotation.Depends( {

       

       

                "jboss.j2ee:jndiName=ejb/com/xxx/system/xxx/StationHealthAuditTimerHome,service=EJB",

                "jboss.j2ee:jndiName=ejb/com/xxx/system/xxx/JobPendingDeleteTimerHome,service=EJB",

                "jboss.j2ee:jndiName=ejb/com/xxx/system/xxx/StationCapacityTimerHome,service=EJB",

                "jboss.j2ee:jndiName=ejb/com/xxx/system/xxx/StrandedWorkItemTimerHome,service=EJB",

                "jboss.j2ee:jndiName=ejb/com/xxx/system/xxx/StationResumeTimerHome,service=EJB",

                "jboss.j2ee:jndiName=ejb/com/xxx/system/xxx/QueuedJobTimerHome,service=EJB",

              "jboss.j2ee:jndiName=AdminMgr,service=EJB",

                "jboss.jca:name=fiper/jms/connectionfactory,service=ConnectionFactoryBinding"

       

       

      }) @Singleton    // This makes the bean a singleton.

         @Startup      // This makes the bean have the same lifecycle as the Application

         @TransactionManagement(TransactionManagementType.BEAN) @RunAs("xxx")

      public class Lifecycle {

                  private static Class<Lifecycle> CLASS = Lifecycle.class;

                  /**

                 * Default constructor.

                 */

                public Lifecycle() {}

                  /**

                 * Called by the server when the singleton is started and all the services

                 * it depends upon have been started too. At this point the service

                 * (and all the services it depends on) is fully functional.

                 */

                @PostConstruct

                public void startup() {

                            System.out.println("Lifecycle.startup() starting");

                          XXXEJB.serverStart();

                          System.out.println("Lifecycle.startup() complete");

                  }

                  /**

                 * called by the server when the singleton is stopped. At this point the

                 * service (and all the services that depend on it) is no longer fully operational.

                 */

                @PreDestroy

                public void shutdown() {

                            System.out.println("Lifecycle.shutdown() starting");

                          XXXEJB.serverStop();

                          System.out.println("Lifecycle.shutdown() complete");

                  }

                  /**

                 * called by the server when the service is destroyed and removed from the MBean server.

                 * At this point the service (and all the services that depend on it) are destroyed.

                 */

                public void destroy() {

                          System.out.println("Lifecycle.destroy() executed");

                }

      }

      {code}

       

      During shutdown, I get errors like:

       

      {noformat}

      09:28:37,146 ERROR [LogInterceptor] EJBException in method: public abstract com.xxx.system.xxx.StationServices com.xxx.system.xxx.StationServicesHome.create() throws java.rmi.RemoteException,javax.ejb.CreateException, causedBy:: javax.ejb.EJBException: javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: connectionfactory not bound]

                at com.xxx.system.xxx.StationServicesBean.setSessionContext(StationServicesBean.java:938) [:6.213.0.11262]

                at org.jboss.ejb.StatelessSessionEnterpriseContext.<init>(StatelessSessionEnterpriseContext.java:72) [:6.1.0.Final]

                at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:49) [:6.1.0.Final]

                at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:179) [:6.1.0.Final]

                at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:94) [:6.1.0.Final]

                at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:270) [:6.1.0.Final]

                at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205) [:6.1.0.Final]

                at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:160) [:6.1.0.Final]

                at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:91) [:6.1.0.Final]

                at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132) [:6.1.0.Final]

                at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107) [:6.1.0.Final]

                at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639) [:6.1.0.Final]

                at org.jboss.ejb.Container.invoke(Container.java:1089) [:6.1.0.Final]

                at sun.reflect.GeneratedMethodAccessor366.invoke(Unknown Source) [:1.6.0_19]

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

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

                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.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169) [:6.1.0.Final]

                at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118) [:6.1.0.Final]

                at org.jboss.invocation.InvokerInterceptor.invokeLocalMarshalled(InvokerInterceptor.java:295) [:6.1.0.Final]

                at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:61) [:6.1.0.Final]

                at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61) [:6.1.0.Final]

                at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64) [:6.1.0.Final]

                at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68) [:6.1.0.Final]

                at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184) [:6.1.0.Final]

                at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101) [:6.1.0.Final]

                at $Proxy420.create(Unknown Source)          at com.xxx.common.ejb.XXXEJB.clusterStop(XXXEJB.java:1064) [:6.213.0.11262]

                at com.xxx.common.ejb.XXXEJB.serverStop(XXXEJB.java:695) [:6.213.0.11262]

                at com.xxx.system.ejbvendor.jboss.Lifecycle.shutdown(Lifecycle.java:65) [:6.213.0.11262]

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

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

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

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

                at org.jboss.ejb3.interceptors.aop.LifecycleCallbackBeanMethodInterceptor.invoke(LifecycleCallbackBeanMethodInterceptor.java:69) [:1.1.3]

                at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80) [jboss-aop.jar:2.2.2.GA]

                at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56) [:1.7.21]

                at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80) [jboss-aop.jar:2.2.2.GA]

                at org.jboss.ejb3.tx.StatelessBMTInterceptor.handleInvocation(StatelessBMTInterceptor.java:100) [:1.0.4]

                at org.jboss.ejb3.tx.BMTInterceptor.invoke(BMTInterceptor.java:57) [:1.0.4]

                at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80) [jboss-aop.jar:2.2.2.GA]

                at org.jboss.ejb3.tx2.aop.NoOpInterceptor.invoke(NoOpInterceptor.java:45) [:0.0.2]

                at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80) [jboss-aop.jar:2.2.2.GA]

                at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) [:1.0.0.GA]

                at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80) [jboss-aop.jar:2.2.2.GA]

                at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47) [:1.7.21]

                at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80) [jboss-aop.jar:2.2.2.GA]

                at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90) [:1.1.3]

                at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_206364542.invoke(InvocationContextInterceptor_z_setup_206364542.java) [:]

                at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80) [jboss-aop.jar:2.2.2.GA]

                at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67) [:1.0.1]

                at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80) [jboss-aop.jar:2.2.2.GA]

                at org.jboss.ejb3.singleton.aop.impl.AOPBasedSingletonContainer.invokeCallback(AOPBasedSingletonContainer.java:1061) [:1.0.2]

                at org.jboss.ejb3.EJBContainer.invokePreDestroy(EJBContainer.java:1413) [:1.7.21]

                at org.jboss.ejb3.singleton.aop.impl.AOPBasedSingletonContainer.preDestroy(AOPBasedSingletonContainer.java:788) [:1.0.2]

                at org.jboss.ejb3.singleton.impl.container.SingletonEJBInstanceManagerImpl.destroy(SingletonEJBInstanceManagerImpl.java:173) [:1.0.2]

                at org.jboss.ejb3.singleton.impl.container.SingletonContainer.destroy(SingletonContainer.java:152) [:1.0.2]

                at org.jboss.ejb3.singleton.aop.impl.AOPBasedSingletonContainer.destroy(AOPBasedSingletonContainer.java:364) [:1.0.2]

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

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

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

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

                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.1.SP1]

                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.1.SP1]

                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.1.SP1]

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.SP2]

                at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.SP2]

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.SP2]

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.SP2]

                at org.jboss.kernel.plugins.dependency.LifecycleAction.uninstallActionInternal(LifecycleAction.java:286) [jboss-kernel.jar:2.2.0.SP2]

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.uninstallAction(InstallsAwareAction.java:175) [jboss-kernel.jar:2.2.0.SP2]

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.uninstallAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.SP2]

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

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

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

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

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

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

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

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

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

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

                at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

                at org.jboss.system.ServiceController.stop(ServiceController.java:493) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

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

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

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

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

                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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) [:6.0.0.GA]

                at $Proxy243.stop(Unknown Source)          at org.jboss.ejb.EjbModule.stopService(EjbModule.java:523) [:6.1.0.Final]

                at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:384) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:303) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

                at sun.reflect.GeneratedMethodAccessor313.invoke(Unknown Source) [:1.6.0_19]

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

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

                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:189) [:2.2.0.SP2]

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

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

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

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

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

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

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

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

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

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

                at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

                at org.jboss.system.ServiceController.stop(ServiceController.java:493) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

                at org.jboss.system.deployers.ServiceDeployer.stop(ServiceDeployer.java:196) [:6.1.0.Final]

                at org.jboss.system.deployers.ServiceDeployer.undeploy(ServiceDeployer.java:176) [:6.1.0.Final]

                at org.jboss.system.deployers.ServiceDeployer.undeploy(ServiceDeployer.java:49) [:6.1.0.Final]

                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalUndeploy(AbstractSimpleRealDeployer.java:70) [:2.2.2.GA]

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:117) [:2.2.2.GA]

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:204) [:2.2.2.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1862) [:2.2.2.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1769) [:2.2.2.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1762) [:2.2.2.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1749) [:2.2.2.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1724) [:2.2.2.GA]

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

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

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

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

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

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

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

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

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

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

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

                at org.jboss.profileservice.dependency.ProfileDeployAction.undeploy(ProfileDeployAction.java:195) [:0.2.2]

                at org.jboss.profileservice.dependency.ProfileDeployAction.uninstallActionInternal(ProfileDeployAction.java:112) [:0.2.2]

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.uninstallAction(InstallsAwareAction.java:175) [jboss-kernel.jar:2.2.0.SP2]

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.uninstallAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.SP2]

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

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

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

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

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

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

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

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

                at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.stop(ProfileActivationWrapper.java:210) [:0.2.2]

                at org.jboss.profileservice.dependency.ProfileActivationWrapper.stop(ProfileActivationWrapper.java:101) [:0.2.2]

                at org.jboss.profileservice.dependency.ProfileActivationService.deactivateProfile(ProfileActivationService.java:220) [:0.2.2]

                at org.jboss.profileservice.dependency.ProfileActivationService.deactivate(ProfileActivationService.java:170) [:0.2.2]

                at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.stop(AbstractProfileServiceBootstrap.java:130) [:0.2.2]

                at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.shutdown(BasicProfileServiceBootstrap.java:160) [:6.1.0.Final]

                at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.shutdown(BasicProfileServiceBootstrap.java:56) [:6.1.0.Final]

                at org.jboss.bootstrap.impl.base.server.AbstractServer.shutdownBootstraps(AbstractServer.java:859) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]

                at org.jboss.bootstrap.impl.base.server.AbstractServer.shutdown(AbstractServer.java:300) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]

                at org.jboss.Main$ShutdownHook$1.run(Main.java:1005) [run.jar:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

      Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: connectionfactory not bound]

                at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1356) [:5.0.5.Final]

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:819) [:5.0.5.Final]

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:835) [:5.0.5.Final]

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]

                at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_19]

                at com.xxx.system.xxx.StationServicesBean.setSessionContext(StationServicesBean.java:912) [:6.213.0.11262]

                ... 167 more

      Caused by: javax.naming.NameNotFoundException: connectionfactory not bound

                at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) [:5.0.5.Final]

                at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) [:5.0.5.Final]

                at org.jnp.server.NamingServer.getObject(NamingServer.java:785) [:5.0.5.Final]

                at org.jnp.server.NamingServer.lookup(NamingServer.java:443) [:5.0.5.Final]

                at org.jnp.server.NamingServer.lookup(NamingServer.java:399) [:5.0.5.Final]

                at org.jnp.server.NamingServer.lookup(NamingServer.java:399) [:5.0.5.Final]

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728) [:5.0.5.Final]

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]

                at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_19]

                at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1350) [:5.0.5.Final]

                ... 172 more

      {noformat}

       

      Message was edited to fix WIKI Markup by: Tim Haley