5 Replies Latest reply on Dec 30, 2005 3:25 PM by Karstem Strunk

    Newbie: Verification of Enterprise Beans failed

    Karstem Strunk Newbie

      Merry Christmas everybody.

      I'm really new to JBoss, but I hope somebody here can help me with my deployment problem.

      I have an ear file which contains two jar files (ejb.jar and jdom.jar) and a war-archive (web.war). ejb.jar and web.war both uses classes from jdom.jar. I set the class-path in the manifest.mf, but when I try to deploy the ear-file, I get:

      2005-12-26 13:18:29,468 WARN [org.jboss.ejb.EJBDeployer] Verify failed; continuing
      java.lang.NoClassDefFoundError: org/jdom/JDOMException

      2005-12-26 13:18:29,471 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/import/home/karsten/Apps/jboss-4.0.3SP1/server/default/tmp/deploy/tmp6108App.ear-contents/EJB.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.

      My ear looks like this:

      |-- ejb.jar
      |-- META-INF
      |-- ejb-jar.xml
      |-- jboss.xml
      |-- MANIFEST.MF
      |-- my class files
      |-- jdom.jar
      |-- web.war
      |-- META-INF
      |-- MANIFEST.MF
      |-- WEB-INF
      |-- web.xml
      |-- jboss-web.xml
      |-- classes
      |-- my class files
      |-- META-INF
      |-- application.xml
      |-- MANIFEST.MF

      The manifest files of ejb.jar and web.war look like:

      Manifest-Version: 1.0
      Ant-Version: Apache Ant 1.6.5
      Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)
      Class-Path: jdom.jar

      By the way I'm using JBoss 4.0.3SP1

      So why can't JBoss find the classes from jdom.jar?
      Can anyone help me?
      Thanx very much!