• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Spring security

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this exception when i do maven clean install



I don't use ldap authentication.

This is my pom.xml




Can someone please help me?
 
Saloon Keeper
Posts: 10302
217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Adelet, welcome to CodeRanch!

When you post code or configuration, please add code tags. I added them for you this time.

DefaultSpringSecurityContextSource is part of spring-security-core, which is a dependency of spring-security-web.

Can you double-check whether Maven has downloaded spring-security-core to your local repository? Can you check whether this library contains the class that triggers the failure?
 
adelet kool
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the advice and the reply.

I verify but there is no ldap package.

org.springframework.security.ldap

There orther package but no ldap.
 
Stephan van Hulst
Saloon Keeper
Posts: 10302
217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean inside spring-security-core?

Another thing you can try is upgrading your spring security version. I noticed you're using Spring framework 4, but Spring security 3. It's a long shot, but you could try.
 
Stephan van Hulst
Saloon Keeper
Posts: 10302
217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I took a look at the dependency graph, and you're referencing spring-security-taglib 4.0.2 and spring-security-web 3.2.3, which depend on conflicting versions of spring-security-core. I'm pretty sure that resolving the version conflict will fix your problem.
 
adelet kool
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I resolve by adding ldap an openid dependencies.

Thank you.
 
Stephan van Hulst
Saloon Keeper
Posts: 10302
217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're not using it in your application, that's just a hack to fight symptoms. You should look at the underlying issue, which is that your dependency graph contains conflicts.
 
adelet kool
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes! I go to analyze the conflict like you tell me. Thank you
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!