File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EAR file packaging and visibility" Watch "EAR file packaging and visibility" New topic
Author

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.

Test-EAR
spring.jar
hibernate.jar
.....
TestWeb
META-INF
MANIFEST.MF

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
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EAR file packaging and visibility