This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EAR simple deployment error

 
Somak Dalui
Ranch Hand
Posts: 43
  • 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
Posts: 9312
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: 43
  • 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