This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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: 10652
227
  • 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: 10652
227
  • 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: 10652
227
  • 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: 10652
227
  • 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
 
BWA HA HA HA HA HA HA! Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!