My Oracle Support Banner

Spring Class Loading Issues (Doc ID 1352415.1)

Last updated on NOVEMBER 02, 2022

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

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
Symptoms
Cause
Solution
References


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