wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes EAR simple deployment error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "EAR simple deployment error" Watch "EAR simple deployment error" New topic
Author

EAR simple deployment error

Somak Dalui
Ranch Hand

Joined: Apr 19, 2005
Posts: 40
My EAR structure is like this :
|--lib
|--app.jar
|--app.war

Inside lib I have all the external libraries required. When I am deploying, I am getting this -


Log4j is already there in the server lib folder, which means we dont have to supply it within the .ear - isn't that right ? After this, I even pushed the log4j.jar into my lib - but still I get this error.
Obviously I am making a simple mistake here, can you please point me out ?

I have created one domain and I am deploying the application under that.

Thanks.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8876
    
    8

Somak Dalui wrote:
Log4j is already there in the server lib folder, which means we dont have to supply it within the .ear - isn't that right ?


No. The server lib folder is for server dependencies. You have two choices for getting classes into your container, the external CLASSPATH (not recommended) or the APP-INF/lib directory of the EAR file (this location is particular to Weblogic).
Organizing Shared Classes in a Split Development Directory


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Somak Dalui
Ranch Hand

Joined: Apr 19, 2005
Posts: 40
Thank you Joe. Setting it in the CLASSPATH worked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EAR simple deployment error