Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Spring Major version '3' expected

 
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:

 
Ranch Hand
Posts: 686
Netbeans IDE Chrome 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
 
Ranch Hand
Posts: 182
Hibernate Eclipse IDE 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
 
Rancher
Posts: 2759
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
Hibernate Eclipse IDE 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 ?
 
On my planet I'm considered quite beautiful. Thanks to the poetry in this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic