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

    Problem deploying EJB

    Scott Headington Newbie

      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

      --JbossTest.jar (the local EJB)
      --appt_client.jar (the remote interface of the remote EJB)

      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">



      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