2 Replies Latest reply on Mar 8, 2011 12:21 PM by Wolf-Dieter Fink

    JBoss 5.1.0 Fails to Start - .ear with jboss-app.xml

    Rajiv Bandaru Newbie

      Hi,

       

      JBoss AS just hangs and sits there utilizing max CPU when ear artifact with jboss-app.xml is deployed. Here is the line where it just hangs - ctxPath=/jmx-console

       

      ......
      23:40:35,855 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
      23:40:35,857 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService
      23:40:35,871 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
      
      
                SecureProfileService/remote - EJB3.x Default Remote Business Interface
                SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface
      
      
      23:40:36,121 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console
      23:40:40,393 INFO  [TomcatDeployment] deploy, ctxPath=/
      23:40:40,502 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
      
      

       

      When ctrl-c, I get tons of exceptions. Attached is the server.log and here are snippets from that log.

       

      23:42:02,647 WARN  [StartStopLifecycleAction] Error during stop for jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
      org.jboss.ejb3.common.registrar.spi.NotBoundException: Could not retrieve Ejb3Registrar as a registrar implementation has not yet been bound.
      .....
      23:42:03,305 ERROR [HttpInvoker] Failed
      java.lang.IllegalStateException: BaseClassLoader@2e7cf883{vfsfile:/usr/local/jboss/jboss-5.1.0.GA/server/xyz/conf/jboss-service.xml} classLoader is not connected to a domain (probably undeployed?) for class java.net.MulticastSocket
                at org.jboss.classloader.spi.b
      
      
      

       

       

      .ear file has a rar module within it and this rar runs quartz scheduler jobs. the rar module has the higher version of quartz.jar than the same jar available globally at common/lib. and, quartz.jar at common/lib was getting classloaded for this rar thereby causing exceptions due to version incompatibility. So, we add a jboss-app.xml in META-INT of the .ear...and here are the jboss-app.xml contents...but, then it hangs.

       

      Work-around: Remove quartz.jar at the common/lib and everything works fine. But, thats not the solution we are looking for as its not clean and elegant. And, there is another thread (http://goo.gl/YH3Cu) with almost the same issue (except no eclipse in my case) but it is unanswered.

       

      Any help here is greatly appreciated.

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-app PUBLIC
                "-//JBoss//DTD Java EE Application 5.0//EN"
                "http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">
      <jboss-app>
        <loader-repository>quartz:archive=xyz-scheduler-rar-ear.ear<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
        </loader-repository>
      </jboss-app>