It's not a secret anymore!
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


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: 182

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

My name was Borat Sagdiyev. But the forum does not allow such names.
Jayesh A Lalwani
Saloon Keeper

Joined: Jan 17, 2008
Posts: 2667
    
  31

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: 182

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 ?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Spring Major version '3' expected
 
It's not a secret anymore!