1 Reply Latest reply on Mar 11, 2002 6:36 AM by adrian.brock

    Can't deploy my ejb

    robc

      Hi,

      I'm using JBoss 2.2.4 and I can't seem to deploy my EJB. I've written the home and remote interfaces and the actual bean class. Everything compiles and I've put my ejb-jar.xm l and jboss.xml files in to a META-INF directory and packaged everything into a jar.

      My ejb-jar.xml file looks like this:

      <?xml version="1.0"?>
      <ejb-jar>
      jBoss test application
      <display-name>Test</display-name>
      <enterprise-beans>

      <ejb-name>Interest</ejb-name>
      com.web_tomorrow.interest.InterestHome
      com.web_tomorrow.interest.Interest
      <ejb-class>com.web_tomorrow.interest.InterestBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>

      </enterprise-beans>
      </ejb-jar>

      and the top of my jboss.xml file looks like this:


      <enterprise-beans>

      <ejb-name>Interest</ejb-name>
      <jndi-name>interest/Interest</jndi-name>
      <configuration-name>Default Stateless SessionBean</configuration-name>

      false
      </enterprise-beans>

      but when I copy my jar file into the deployment directory it doesn't register the bean. Can anyone help me?

        • 1. Re: Can't deploy my ejb

          This is normally caused because the server hasn't
          started. Most likely the connection to the database
          is hanging on an infinite timeout due an incorrect url.

          If you look through the forums you will see this is
          a common problem. Many of the posts have solutions,
          but not all of them.

          Regards,
          Adrian