File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 9962
    
163

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Libs inside ear or jar?
 
Similar Threads
maven: the war directory structure
Maven - Compile dependency on Jar(s) inside EAR
Problem with EAR holding WAR and JAR files
New to Spring
.EAR files??