wood burning stoves 2.0*
The moose likes Spring and the fly likes Spring Major version '3' expected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Major version Watch "Spring Major version New topic
Author

Spring Major version '3' expected

cecilia fava
Greenhorn

Joined: Oct 26, 2011
Posts: 8
I'm using Spring 3.0.5.RELEASE +Hibernate 3.0 and I don't know Spring 2.5.6 is intented to use for Spring Security.
2011-11-07 09:40:18 ERROR [http-8080-1] (SpringSecurityCoreVersion.java:24) - Spring Major version '3' expected, but you are running with version: 2.5.6. Please check your classpath for unwanted jar files.



My Classpath don't have Spring 2.5.6 in Maven dependecies listed.
Any help?

My security.xml


My pom.xml is:

Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

conflicting versions (3 and 2.5.6) in classpath. Check the lib directories


===Vyas Sanzgiri===
My Blog
Ali Gordon
Ranch Hand

Joined: Apr 30, 2014
Posts: 164

Vyas Sanzgiri wrote:conflicting versions (3 and 2.5.6) in classpath. Check the lib directories


How do I find out which lib folder ? I am using someone elses project which has 2-3 lib folders in different places.
In my case there is a conflict between 3 and 4.1

Thank you for all your help and support. High five !
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2273
    
  28

If you are using maven, run MFN dependency:tree and it will list out all the dependencies.

Btw, the spring recommend way of adding dependencies is to use the Bill of materials this way you won't struggle with conflicting dependencies
Ali Gordon
Ranch Hand

Joined: Apr 30, 2014
Posts: 164

Jayesh A Lalwani wrote:If you are using maven, run MFN dependency:tree and it will list out all the dependencies.

Btw, the spring recommend way of adding dependencies is to use the Bill of materials this way you won't struggle with conflicting dependencies


I am new to all this, so I cannot understand much. Do I have to just copy paste the bom code in the right place and rebuild my project ?
What happens to the old version tags and all old jars in my project ?
 
 
subject: Spring Major version '3' expected
 
Similar Threads
Spring 3.0.2 and Active MQ 5.4.1 Issues
Maven web project dependencies
Error: ERROR initServletBean, Context initialization failed
Could not resolve dependencies for maven project
Maven dependencies