wood burning stoves 2.0*
The moose likes Spring and the fly likes Context initialization failed in spring Initlization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Context initialization failed in spring Initlization" Watch "Context initialization failed in spring Initlization" New topic

Context initialization failed in spring Initlization

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
Hi ,

I am getting error in using spring.

SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No authentication providers were found in the application context
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

OK, it looks like you are using Spring Security. In that you are required for defining an AuthenticationProvider/UserDetailsService to load your user data. Since every app uses something different, it will be specific to your application. But you have to define a bean for it.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
wood burning stoves
subject: Context initialization failed in spring Initlization
Similar Threads
first sample - simpleform controller
spring mvc annotation error
Struts+Spring+hibernate integration problem
Unable to run Spring DHB examples
How to Identify Cause of Context Initialization Failure