1 Reply Latest reply on Aug 18, 2005 11:17 AM by Andre Tschischka

    java.lang.NoClassDefFoundError: javax/ejb/EJBMetaData

    Andre Tschischka Newbie


      I've changed the ear deployer to isolate my application:

      <attribute name="Isolated">true</attribute>

      Now the AS throws an exception while deploying my EBJs
      WARN [org.jboss.mx.server.registry.BasicMBeanRegistry] preRegister() failed for jboss.j2ee:jndiName=ejb/TerminalService,service=EJB:
      java.lang.NoClassDefFoundError: javax/ejb/EJBMetaData
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
      at java.lang.Class.privateGetPublicMethods(Class.java:1778)
      at java.lang.Class.privateGetPublicMethods(Class.java:1794)
      at java.lang.Class.getMethods(Class.java:832)

      Does anybody know the reason why?


        • 1. Next try : java.lang.NoClassDefFoundError: javax/ejb/EJBMeta
          Andre Tschischka Newbie


          Now I have changed my strategy. Instead of config a global isolation in the
          ear-deployer.xml I put a jboss-app.xml with the following content in my ear file:


          (in the ear-deployer.xml Isolated and CallByValue are set to false )
          When I start the server I'm getting ClassCastExceptions on all my EJBs.
          Touching the ear-deployer.xml without stopping the server causes a redeploying of my application. And now all went well my EJBs could be deployed??? Stopping and starting the server again throws ClassCastExceptions???

          I'm using JBoss AS 4.0.1 / 4.0.2 and JDK 1.4.2_06.