File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EAR file packaging and visibility Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EAR file packaging and visibility" Watch "EAR file packaging and visibility" New topic

EAR file packaging and visibility

Kalichar Rangantittu
Ranch Hand

Joined: Jan 15, 2002
Posts: 240
Hi All,

I have the following EAR file set up.


I am running on JBoss.My MANIFEST.MF contains entries for the items in Test-EAR, i.e., spring.jar, hibernate.jar etc.

When trying to run the application, I get class not found issues etc even though I have all the libraries defined in the MANIFEST.MF file.

My question is, if a class in the web project accesses a class in say spring.jar, the class should be visible and loaded. If the class in spring.jar tries to access a class in hibernate.jar, will the class be visible or not?

What am I missing here. Thanks in advance for any assistance.

Never be satisfied with anything less than the best and you will surely pass the test...
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10418

You will have to mention those jars in the application.xml file present in the META-INF of the ear. See if thishelps.

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: EAR file packaging and visibility