This discussion is archived
3 Replies Latest reply: Jul 20, 2012 9:25 AM by dvohra21 RSS

Overriding Spring Version In OEPE

583554 Newbie
Currently Being Moderated
I am attempting to use OEPE to create a Spring-based application. Specifically, I am attempting to use Spring 3.1.1.RELEASE.

Unfortunately, I receive the following error message on server startup:

14:56:26.664 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR o.s.s.core.SpringSecurityCoreVersion - *** Spring Major version '3' expected, but you are running with version: 2.5.6.SEC01. Please check your classpath for unwanted jar files.

In my deployment directory, all of the Spring files at version 3.1.1.RELEASE.

I've tried two separate means in weblogic.xml to make the server use my version (note: one of the means I am using is commented out below, but I have tried both):

<pre>
     <wls:container-descriptor>
          <wls:prefer-application-packages>
               <wls:package-name>com.oracle.ojdbc16.*</wls:package-name>
               <wls:package-name>antlr.*</wls:package-name>
               <wls:package-name>javax.persistence.*</wls:package-name>
               <wls:package-name>org.apache.*</wls:package-name>
               <wls:package-name>org.springframework.*</wls:package-name>
               <wls:package-name>org.hibernate.*</wls:package-name>
               <wls:package-name>org.apache.xerces.*</wls:package-name>
          </wls:prefer-application-packages>
          <!-- <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes> -->
     </wls:container-descriptor>
</pre>

Can anyone help?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points