1 Reply Latest reply on Jul 11, 2002 1:40 PM by Steve Farkas

    NoClassDefFoundError during deployment

    Steve Farkas Newbie

      I had an EJB deployed with CMP & CMR in Jboss 3.0

      It was working with my client. However, I added a
      few more fields to the EJB and it's table.

      I thought I had made all the proper changes to
      jbosscmp-jdbc.xml & ejb-jar.xml, but upon deploy
      I get a class not found error.

      The error trace doesn't mention which 'class' isn't found!?!!!

      I've retracted my steps back and removed the fields
      I added to the bean - with no luck. I've rechecked the xml several times.

      Anybody seen this before !? Do I debug/modify
      the code to give me more information !?


      08:49:47,120 DEBUG [J2EEManagedObject] getObjectName(), name: jboss.management.single:J2EEApplication= ,J2EEServer=Single,j2eeType=EJBModule,name=obsEJBs.jar
      08:49:47,125 DEBUG [J2EEManagedObject] postRegister(), parent: jboss.management.single:J2EEServer=Single,name=
      08:49:47,127 INFO [EjbModule] Deploying Layer
      08:49:47,128 ERROR [MainDeployer] could not create deployment: file:/web/jboss.3.0.0/server/default/deploy/obsEJBs.jar
      at org.jboss.ejb.EjbModule.createEntityContainer(EjbModule.java:639)

        • 1. Re: NoClassDefFoundError during deployment
          Steve Farkas Newbie


          We've noticed that the class not found error (during
          the createEntityContainer() code as per
          my original note) occurs shortly after
          a "sealing violation" on a jar ?

          A redeploy of the jar, to hopefully correct
          the sealing violation results in the class not
          found errors for any EJB - including the gangster
          CMP examples !

          Hmm. Judging by the lack of responses, this is
          only happening to us!?