I have a simple J2ee application. Take a look at this image for the code structure:
Now, as you can see from it, ArRc_core becomes ArRc_core.jar. It has some common api that the EJB uses. At build time, I do not have any issues. But when I deploy the ear on JBoss 4.2.2 it shows up this exception:
and My Session Bean is not getting deployed.
I tried everything. changing class-path in manifest.mf, copying ArRc_core.jar to /server/default/lib etc.. but nothing works.
Please let me know how I can include this dependent jar with the ejb jar. Here is my jboss.xml:
Create a folder named "lib" directly at the root of the ear and place your common-api jar inside that lib folder. The jar will then be made available to your entire application (which includes the EJB)
At this point, you will have to post the entire exception stacktrace. Where is the Booking class located(in which jar)? And do you have the jar file(s), which might be required by the Booking class, in the classpath? I mean your Booking class might be referring (either extending or importing or any other means) to some other class which might not be available in the classpath.