on 03-05-2008 10:25 AM
Hi All,
I have an enterprise application with two web modules. Each of the modules have several files (like log4j.properties) with same name. Apparently the enterprise application runs with single classloader, so files from different web modules with same name are not found. Is there a way to configure the application to use separate classloader for each WAR?
Thanks,
Gil
Hi Gil,
have you found a solution for this task? I have a simular problem!
Bernd
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
my EAR has following structur:
EAR
+- ejb.jar
+- warA.war
| +- jsp/xxx
| +- META-INF/MANIFEST.MF
| +-/WEB-INF
| +- classes
| | +- log4j.properties
| | +- other.properties
| +- lib
| +- util.jar
+- warB.war
+- jsp/xxx
+- META-INF/MANIFEST.MF
+-/WEB-INF
+- classes
| +- log4j.properties
| +- other.properties
+- lib
+- util.jar
In the Class Loader Viewer I get following output:
Vendor/Product - Classloader - Resourcen
+ ejb.jar
+ classes warA
+ util.jar warA
+ classes warB
+ util.jar warB
For each context-root I only get the log4j.properties and other.properties from the warA. I expacted different classloaders on each WAR as I know that from glassfish and websphere (there with config PARENT_LAST)?!
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.