Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EAR file packaging and visibility

 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to mention those jars in the application.xml file present in the META-INF of the ear. See if thishelps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic