0 Replies Latest reply on Jan 12, 2017 4:30 AM by asisranjan.n1

    Error during stop for jboss.j2ee:ear (org.jboss.ejb3.common.registrar.spi.NotBoundException)

    asisranjan.n1

      Hi

       

      Since Ejb3Registrar unbinded much earlier, while looking up Ejb3Registrar during undeploy of ear caused exception "org.jboss.ejb3.common.registrar.spi.NotBoundException".

      Log is in below.

       

      My question is in below:

       

      a) Who trigger Jboss shutdow hook to unbind Ejb3Registrar. Why it unbind ejb3registrar before ejb service which packaged in ear

      b) Is there way we can specify the order of undeployment so that Jboss shutdown hook will access ear before unbinding wjb3registrar

       

      Log as follows:

      -----------------------------------------

      --------------------- (some log related to undeployment of jar/xml, owned by jboss)

      2017/01/11 16:45:03.296 DEBUG (JBoss Shutdown Hook) [org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator.unbindRegistrar:132] Unbinding Ejb3Registrar: org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar@2488a4b4

      ---------------------

      ---------------------

      2017/01/11 16:45:03.383 INFO (JBoss Shutdown Hook) [org.jboss.ejb3.session.SessionSpecContainer.lockedStop:556] Stopping jboss.j2ee:ear=cms-audits.ear,jar=cms-audits.jar,name=com.test.InventoryUpdater,service=EJB3

      2017/01/11 16:45:03.384 WARN (JBoss Shutdown Hook) [org.jboss.kernel.plugins.dependency.LifecycleAction.uninstallActionInternal:263] Error during stop for jboss.j2ee:ear=cms-audits.ear,jar=cms-audits.jar,name=com.test.InventoryUpdater,service=EJB3

      org.jboss.ejb3.common.registrar.spi.NotBoundException: Could not retrieve Ejb3Registrar as a registrar implementation has not yet been bound.

      ---------------------

      ---------------------

       

      EAR package structure

      -------------------------------

      cms-audits.ear

      ----------META-INF

                       ----application.xml

      ----------cms-audits.jar

                         ----InventoryUpdater (Local stateless ejb bean)

                         ----InventoryMBean (MBean which uses ejb bean: InventoryUpdater)

       

      Jboss version : 5.2.*

       

       

       

      Thanks

      Asis