Reputation: 141
I have project structure like below
SOME-EAR/
----- sampleWarOne.war
----- sampleWarTwo.war
inside SOME-EAR
I have lib folder SOME-EAR/lib
. Is it possible to use jars present in SOME-EAR/lib
? As of now I am picking from WEB-INF/lib
, but some of the jars are used in multiple war files. So I wanted to pick it from SOME-EAR/lib
instead.
How do I pick from SOME-EAR/lib
instead ?
Upvotes: 0
Views: 737
Reputation: 389
You can find JBoss AS 7 Classloading documentation useful.
Just put all your common jars in EAR's /lib dir and set ear-subdeployments-isolated to false
Should do the trick unless you're trying to load e.g.: taglib libraries
Upvotes: 1