This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 9929
    
159

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
 
Similar Threads
Diff. Btwn EAR, WAR, & JAR Files????
Prorblem using class-path in manifest.mf
Why do my JARs have to be in the server classpath?
Unable to find shared jar in WSAD 5.1.2's WebSphere 5.0 Test Environment
jelp me guys...its urgent