2 Replies Latest reply on Dec 21, 2001 9:19 AM by Mark Desrosier

    BMP Deployment Problems

    Abe Newbie

      Hi,

      As an absolute beginner... here is my problem...

      I am trying to deploy a BMP Entity Bean within JBoss 2.4.3. Having completed my Home, Remote and Bean classes - together with a ejb-jar.xml file, I create a jar file called user.jar from within the directory where my compiled classes were. All classes, together with the contents of the META-INF directory (the ejb-jar.xml file) were successfully placed in a jar.

      Once I deployed the jar to the /deploy directory and started up the JBoss server, I received this error...

      [Verifier] Verifying file:/usr/local/jboss/tmp/deploy/Default/user.jar/ejb1001.jar
      [Verifier]
      Bean : BMPUser
      Section: 16.2
      Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods.

      [Verifier]
      Bean : BMPUser
      Section: 16.2
      Warning: The Bean Provider must specify the fully-qualified name of the enterprise bean's home interface in the home element.

      ------ start of error
      [Verifier]
      Bean : BMPUser
      Section: 16.2
      Warning: The Bean Provider must specify the fully-qualified name of the enterprise bean's remote interface in the remote element.

      [Container factory] Deploying BMPUser
      [Container factory] java.lang.ClassNotFoundException: com.crmworkshop.ms.user.ejb.UserHome
      [Container factory] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

      ----- and so on and so on

      Does anyone know what's up with this?? Have I jar'ed up the file incorrectly or completely stuffed up the ejb-jar.xml syntax (see below)???

      ---- ejb-jar.xml file --------
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <ejb-jar>
      <enterprise-beans>

      <ejb-name>BMPUser</ejb-name>
      com.crmworkshop.ms.user.ejb.UserHome
      com.crmworkshop.ms.user.ejb.User
      <ejb-class>com.crmworkshop.ms.user.ejb.UserBean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>java.lang.Integer</prim-key-class>
      False

      </enterprise-beans>
      <assembly-descriptor>
      <container-transaction>

      <ejb-name>BMPUser</ejb-name>
      <method-name>"*"</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>
      -------- end of ejb-jar.xml file

      Hopefully someone can shed some light on this problem.

      Chrs
      Abe