My Oracle Support Banner

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

Last updated on DECEMBER 16, 2023

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



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

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