Groups > Weblogic > WebLogic environment > one EAR , multiple WARs - CLASSPATH problem




one EAR , multiple WARs - CLASSPATH problem

one EAR , multiple WARs - CLASSPATH problem
Mon, 27 Aug 2007 11:28:36 -070
Hi there,

According to [url
http://e-docs.bea.com/wls/docs92/programming/splitcreate.html#wp1102496]WL 9
documentation[/url], any thid-party library of my EAR located at APP-INF/lib can
be referenced anywhere.

Unfortunately that's not happening ... :-(

This is my EAR scenario:

[b]APP-INF\lib\log4j.jar
APP-INF\lib\struts.jar
APP-INF\lib\many-others.jar
ejb1.jar
ejb2.jar
web1.war (no jars inside)
web2.war (no jars inside)
web3.war (no jars inside)
[/b]

There is no problem with EJB, but no web application can reach any jar from
APP-INF\lib\ . 

If I copy all jars to WEB-INF\lib inside a WAR, everything works fine. That
won't be an option because I have 7 web modules and creating an EAR with the
same jars 7 times is out of the question. 


Post Reply
about | contact