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

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

    Raj Venkat Newbie

      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


      * 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'


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

          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"
           <display-name>My Application</display-name>