3 Replies Latest reply on Oct 24, 2002 10:15 AM by imdkidd

    classpath/classloader issue when using ear file

    eqbridges

      hi all,

      i'm using JBoss-3.0.2, jdk-1.3.1 on linux & windows.

      i have an .ear file with a structure like so:
      META-INF/
      META-INF/MANIFEST.MF
      META-INF/application.xml
      mockobjects-jdk.jar
      mockobjects.jar
      log4j.jar
      log4j.xml
      contentdb-ejb.jar

      and then contentdb-ejb.jar has a few ejb's in it which use mockobject classes. the manifest in contentdb-ejb.jar looks like this:

      Manifest-Version: 1.0
      Classpath: mockobjects-jdk.jar mockobjects.jar log4j.jar
      Created-By: Apache Ant 1.5

      however, when i deploy and try to run a test client i get a classnotfound exception:
      [java] java.rmi.ServerError: Unexpected Error; nested exception is:
      [java] java.lang.NoClassDefFoundError: com/mockobjects/sql/MockSingleRowResultSet

      the mockobjects-jdk.jar file contains this class:
      $ jar tf lib/mockobjects-jdk.jar | grep MockSingleRowResultSet
      com/mockobjects/sql/MockSingleRowResultSet.class

      i must be missing something obvious, but am totally blind to it..

      hope someone can point it out for me :-)

      cheers
      --e--