cancel
Showing results for 
Search instead for 
Did you mean: 

Separate classloaders for each Web Application

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gil,

have you found a solution for this task? I have a simular problem!

Bernd

Former Member
0 Kudos

Do you have to have to have the two web modules in the same ear file?

Former Member
0 Kudos

Hi,

our EAR contains two WARs. We have no problem with this on WebSphere or Glassfish and so we don't want to splitt up for NetWeaver. Each modul of a EAR should be independent from the other modul, or?

rolf_paulsen
Active Participant
0 Kudos

In which folder do you have your log4j.properties? WEB-INF, WEB-INF/classes, ...?

Did you check the class loader view in NWA?

Former Member
0 Kudos

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)?!

Former Member
0 Kudos

Hi,

because there are no announce since my last entry, I assume that there is no solution to deploy independent WARs in one EAR.

To solve the problem I will generate for each WAR one EAR. For the EJB I have to create a LIB because each WAR calls the same EJB.

Best regards,

Bernd