Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Major version '3' expected

 
cecilia fava
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 686
Chrome Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
conflicting versions (3 and 2.5.6) in classpath. Check the lib directories
 
Ali Gordon
Ranch Hand
Posts: 182
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jayesh A Lalwani
Rancher
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic