My Oracle Support Banner

Prefer-web-inf-classes Precedence Is Ignored Between Webapp Modules In Same Application (Doc ID 2242754.1)

Last updated on NOVEMBER 09, 2018

Applies to:

Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.

Goal

The goal of this note is to clarify about the scope of the prefer-web-inf-classes (weblogic.xml) when set in one out of several webapp modules in the same application.  Frequently there is misunderstanding in this regard when involving shared libraries.  

In more detail the scenario this document depicts is for example an ear file with two webapp(war modules) and one of then  has prefer-web-inf-classes set.

For example:

myapp.ear

--- APP-INF/lib
------- utility-api-v1.jar (appl path or system path level)
wars:
----- webapp1            (prefer-web-inf-classes FALSE)
---------WEB-INF/lib
---------------- utility-api-v2.jar
----- webapp2            (prefer-web-inf-classes TRUE)
---------WEB-INF/lib
---------------- utility-api-v2.jar

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.