jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Configuration problem in EAR file" Watch "Configuration problem in EAR file" New topic

Configuration problem in EAR file

Benson Fung
Ranch Hand

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

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

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
sankar singh
Ranch Hand

Joined: Aug 17, 2007
Posts: 40

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: 214
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.


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.

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
It's not a secret anymore!