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

Last updated on MARCH 15, 2017

Applies to:

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


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:


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



Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms