0 Replies Latest reply on Jul 24, 2002 11:21 PM by Shankar Banerjee

    Getting  java.lang.NoClassDefFoundError when accessing EJB f

    Shankar Banerjee Newbie

      Hi,

      We have an EJB jar and a bunch of other jars. The EJB jar
      is deployed under JBoss and the other jars are in the classpath in run.sh. I am trying to access a SessionBean
      from a normal class in one of the other jar (in the same
      appserver VM)and I get java.lang.NoClassDefFoundError.
      I tried packing all the jars (including the EJB jar) together in an ear file and deploying so that they get loaded by the same classloader. That did not help. Any idea or possible solutions will be very much appreciated.

      Thanks

      Shankar (The stack trace follows)
      [Default] In InvocationHandler className =com.certive.workflow.handlers.OppLooku
      p
      [Default] In InvocationHandler classLoaderName =java.net.URLClassLoader
      [Default] Exception in handler call com/certive/ejb/opportunity/OpportunityManag
      erSessionRemote
      [Default] java.lang.NoClassDefFoundError: com/certive/ejb/opportunity/Opportunit
      yManagerSessionRemote
      [Default] at java.lang.Class.forName0(Native Method)
      [Default]
      [Default] at java.lang.Class.forName(Class.java:115)
      [Default]
      [Default] at com.certive.workflow.handlers.InvocationHandler.executeTask(I
      nvocationHandler.java:75)
      [Default]
      [Default] at com.thbs.dotflow.instance.RunnableJob.invokeHandler(RunnableJ
      ob.java:1190)
      [Default]
      [Default] at com.thbs.dotflow.instance.RunnableJob.executeTask(RunnableJob
      .java:625)
      [Default]
      [Default] at com.thbs.dotflow.instance.RunnableJob.run(RunnableJob.java:25
      4)
      [Default]
      [Default] instId = FOO:000034