Class Loading Conflict When Attempting To Use Sites JARs With prefer-application-packages node in weblogic.xml in Sites App Integration

(Doc ID 2174843.1)

Last updated on AUGUST 29, 2016

Applies to:

Oracle WebCenter Sites - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to use Sites provided WEB-INF/lib/asm-5.0.3.jar file with <package-name>org.objectweb.asm.*</package-name> for an application integration, only the asm-3.1.jar is being picked up.

There are multiple versions of the ASM jar installed on the system, such as:

./oracle_common/modules/asm-3.1.jar
./wcsites/webcentersites/sites-home/lib/asm-3.1.jar
./wcsites/webcentersites/sites-home/lib/asm-5.0.3.jar
./wcsites/webcentersites/sites-home/lib/asm-all-repackaged-2.2.0-b14.jar

If the asm-5.0.3.jar is needed to be the primary referenced JAR, then you generally use the <prefer-application-packages> in the weblogic.xml file.  However, this is failing to work to work and causes a class conflict

Changes

 

Cause

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