This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Configuration problem in EAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Configuration problem in EAR file" Watch "Configuration problem in EAR file" New topic
Author

Configuration problem in EAR file

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
Hi all,

I got a big problem of the configuration in ear file.

Scenario:
The content of the ear are as follows:
a.ear :

b.war //web module
c.jar //ejb module
d.jar //extra jar file


In order to make d.jar accessible to b.war and c.jar file, can anyone give me idea what configuration I need to do?


Thanks a lot
Benson
sankar singh
Ranch Hand

Joined: Aug 17, 2007
Posts: 40
Hello,

what i feel is your question could have bit clear. anyhow let me answer for that which i understood, your directory structure would be one of the problem, meaning you have not placed WAR and JAR in proper place, what my kind adivce here is pls have a look on this book "Head First Servlets and JSP" which is really good one for all. It contains answer for your questions. Thnx a lot.
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
Hi Sanka,

Thanks for your reply. um..I believe the directory structure of a ear file is like that and it is same as what the book mentions. I don't think the book will give the picture differently.
The ear file contains war file, ejb jar file and utility jar file. the layout of the ear file. i.e.

ear
|
|____b.war
|
|____c.jar
|
|____d.jar
|____META-INF
|_______MANIFEST.MF
|_______application.xml

where c.jar is the ejb jar and d.jar is the utility jar file.

The question is how d.jar is accessible to b.war file.


Thanks
Benson
krishnamoorthy kitcha
Ranch Hand

Joined: Feb 04, 2006
Posts: 96
Hi Benson


If you have the editor netbeans or something else, while creating the war file , we will mount the accessable jar the path location .

If you are not using the editor , In the web module contained the two folder like META-INF, WEB-INF,

In the WEB-INF folder contained classes and lib

Classes folder contained our active servlet where as lib folder contained
our accessable jar , like you are told (d.jar)

Still you are not clear , Send your reply.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuration problem in EAR file
 
Similar Threads
Doubt on WebSphere Classloader mode and policy
Custom ClassLoader which depends on more than one classloader
How this classloading settings work ?
jar classpath help
Manifest file not working in J2EE project?