File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes EAR simple deployment error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply 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: 8263

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: EAR simple deployment error
 
Similar Threads
Unable to deploy an EJB.
Stateless Session Bean Deployment error
Problem regading Entity bean....
Unable to deploy EJB: content.jar from content.jar:
Exception:weblogic.management.ApplicationException: prepare failed for devejb