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 Libs inside ear or jar? 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 "Libs inside ear or jar?" Watch "Libs inside ear or jar?" New topic
Author

Libs inside ear or jar?

Raghunath Nandyala
Ranch Hand

Joined: Jan 24, 2006
Posts: 64
Hi

I'm writing one EJB (DATBean).This bean needs specific libs "tap.jar,okr.jar"(Should available to only my application)
I build ear like this
DATEar:
DATBean.jar
META-INF----application.xml+MANIFEST.MF
tap.jar
ok.jar

But The bean is not picking the libs inside EAR

Please help

RaghuNath.
--------------------


SCBCD,SCWCD,SCJP
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9912
    
158

Which application server are you using?


[My Blog] [JavaRanch Journal]
seshu Palamanti
Ranch Hand

Joined: Jul 03, 2004
Posts: 59
Even though EAR file format for application server is more of Sun Standard Different application servers look at this in a different way. Example Weblogic will put all jars in Ear/App-inf/classes/*.jar in classpath your code might not find jars else where in weblogic.So please check up your server documentation about packaging your application.
Raghunath Nandyala
Ranch Hand

Joined: Jan 24, 2006
Posts: 64
Thanks jaikiran pai,seshu Palamanti

I got the solution ..I'm using weblogic 8.1

EAR :

APP-INF--lib---(All libs)
META-INF
MDB.jar
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Libs inside ear or jar?
 
Similar Threads
.EAR files??
New to Spring
maven: the war directory structure
Problem with EAR holding WAR and JAR files
Maven - Compile dependency on Jar(s) inside EAR