Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EAR simple deployment error

 
Somak Dalui
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9259
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Somak Dalui
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Joe. Setting it in the CLASSPATH worked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic