• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jboss Shutdown Hook:Error during stop EJB service:NotBoundException:Could not retrieve EJB3Registrar  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

During Jboss startup, if connection to database is not established then jboss server automatically goes down. In this process, Jboss shutdown hook trying to stop ejb service : InventoryUpdater . Log messages are mentioned in below:

2016/12/08 13:00:59.270 WARN (main) [com.myproj.db.aerospike.ASDatabaseFactory.createDatabase:338] Database not available; waiting forever for it to come up
2016/12/08 13:06:30.502 WARN (JBoss Shutdown Hook) [org.jboss.kernel.plugins.dependency.LifecycleAction.uninstallActionInternal:263] Error during stop for jboss.j2ee:ear=abc-audits.ear,jar=abc-audits.jar,name=com.myproj.server.InventoryUpdater,service=EJB3
org.jboss.ejb3.common.registrar.spi.NotBoundException: Could not retrieve Ejb3Registrar as a registrar implementation has not yet been bound.
at org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator.locateRegistrar(Ejb3RegistrarLocator.java:85)
at org.jboss.ejb3.session.SessionContainer.getJndiRegistrar(SessionContainer.java:360)
at org.jboss.ejb3.session.SessionContainer.lockedStop(SessionContainer.java:280)
at org.jboss.ejb3.session.SessionSpecContainer.lockedStop(SessionSpecContainer.java:558)
at org.jboss.ejb3.EJBContainer.stop(EJBContainer.java:1058)

Note: InventoryUpdater is stateless local bean

My Question:
a) Why jboss shutdown hook is looking up ejb service (InventoryUpdater) which is not yet registered. Please correct me if i am wrong.
b) Is there any way we can explicitly ask to jboss, do not look up ejb service which is not registered during stop.

Please let me know if any other thing required for analysis above problem.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!