1 Reply Latest reply on Mar 26, 2005 5:08 PM by nlmarco

    how to debug why an ejb is not getting deployed in jboss 4.0

    copperman

      06:42:57,646 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/opt/servers/jboss-4.0.0/server/default/deploy/accountlocate.ear
      06:42:57,901 INFO [EARDeployer] Init J2EE application: file:/opt/servers/jboss-4.0.0/server/default/deploy/accountlocate.ear
      06:43:01,912 INFO [EARDeployer] Started J2EE application: file:/opt/servers/jboss-4.0.0/server/default/deploy/accountlocate.ear

      but i do not see any EJBs deployed or the JNDI view does not show the EJBs. My sample application is getting deployed.

      here is the copy of JNDI view

      jboss.j2ee

      * extension=LoaderRepository,service=EARDeployment,url='accountlocate.ear'
      * jndiName=CabinHomeRemote,plugin=cache,service=EJB
      * jndiName=CabinHomeRemote,plugin=pool,service=EJB
      * jndiName=CabinHomeRemote,service=EJB
      * jndiName=TravelAgentHomeRemote,plugin=pool,service=EJB
      * jndiName=TravelAgentHomeRemote,service=EJB
      * module=titan.jar,service=EjbModule
      * service=ClientDeployer
      * service=EARDeployer
      * service=EARDeployment,url='accountlocate.ear'

      Thanks

        • 1. Re: how to debug why an ejb is not getting deployed in jboss
          nlmarco

          Do you have an "application.xml" in the directory "accountlocate.ear/META-INF"? If not, create one and register your jars there. The jars in the deploy-directory are only automatically deployed if they aren't wrapped within an ear. As soon as you use an ear, you need an application.xml. Hope, I could help!

          Here is the DTD: http://java.sun.com/dtd/application_1_3.dtd

          A simple example of this file could look like this:

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE application
           PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
           "http://java.sun.com/dtd/application_1_3.dtd">
          <application>
           <display-name>My Application</display-name>
           <module>
           <ejb>MyEJB.jar</ejb>
           </module>
           <module>
           <connector>MyResourceAdapter.rar</connector>
           </module>
           <module>
           <web>
           <web-uri>MyWebClient.war</web-uri>
           <context-root>/My/Application</context-root>
           </web>
           </module>
          </application>