3 Replies Latest reply on Apr 24, 2008 2:09 AM by jaikiran

    Problem deploying EJB

    sheadington

      Hi All

      I have a JBoss 3.2.3 server and I have written a simple stateless session bean that is calling a remote session bean on another server. Seems simple enough so far...

      But my problem is a NoClassDefFoundError when I deploy the EAR file.

      14:34:41,827 WARN [EJBDeployer] Verify failed; continuing
      java.lang.NoClassDefFoundError: com/test/ejb/IAppointmentBean
      at java.lang.Class.getDeclaredMethods0(Native Method)

      (I truncated for brevity)

      Here is my simple ear file

      jbtest.ear
      --JbossTest.jar (the local EJB)
      --appt_client.jar (the remote interface of the remote EJB)
      --META-INF/application.xml

      and the contents of the application.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
      <display-name>Jbtest</display-name>

      JbossTest.jar


      appt_client.jar




      Can someone please tell me what I've done wrong here? I dont understand why my local EJB cannot find com/test/ejb/IAppointmentBean which is in the appt_client.jar file.

      Thanks in advance
      s