Spring Class Loading Issues (Doc ID 1352415.1)

Last updated on FEBRUARY 22, 2017

Applies to:

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

Symptoms

JRF enabled WebLogic server domain is not picking up the application jar (classes) but rather seems to be loading its own jars and throwing exceptions after deployment due to a mismatch in the spring version classes with the jars in the application. For some reason, the use of the JRF domain is overriding the application level prefer-application-packages settings and there by throwing exceptions.


The Issue here is after deploying a EAR application on WLS 10.3.4 the below exception is thrown in the stdout:

SEVERE: Spring Major version '3' expected, but you are running with version:2.5.6.SEC01. Please check your classpath for unwanted jar files



The application is using Spring 3 Framework and is configured to use prefer-application-packages to let Weblogic know to load the spring libraries from the application directories. So the issue here is that even after setting the prefer-application-packages , the above mentioned error is thrown.

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