IntelliJ Java IDE
The moose likes Spring and the fly likes Anyone know what this Spring security error means? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Anyone know what this Spring security error means?" Watch "Anyone know what this Spring security error means?" New topic
Author

Anyone know what this Spring security error means?

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 388
Hi,

I'm using Spring 3.0. We're trying use the Spring security module on our site. We are seeing this error in our logs on startup and wonder if anyone knows what it means and how to solve it. We see



Here is what we are using for our Spring securityContext.xml file ...



Grateful for any thoughts, - Dave
Peter Mularien
Author
Ranch Hand

Joined: Sep 06, 2007
Posts: 84
Hi Dave,

This looks 90% probable not to be related to Spring Security. Do you have any other configuration files OR do you have a bean using constructor injection with the @Autowired annotation? If you enable a higher level of Spring logging, you should get information on what specific bean it is trying to wire.

Peter


Author, Spring Security 3 (the Book), Packt Publishing, 2010
SCJP, OCP
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 388
Hi Peter, I do have autowired beans and other config files that are numerous. When you say, "enable a higher level of logging", it seems Spring is already logging at a DEBUG level, so how do I get more granular than that?

- Dave
Peter Mularien
Author
Ranch Hand

Joined: Sep 06, 2007
Posts: 84
Sorry, I missed that

1> Could you please give us (or review) the previous few lines above this one you posted?
2> Alternatively, you can simply run this in a debugger and set a breakpoint at the line indicated OR on the NoSuchFieldException exception (most IDEs can do this). This approach has been successful for me in the past when trying to diagnose difficult problems.
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 388
Regarding the logs. Here are the lines immediately before what I posted ...



Thanks, - Dave
 
 
subject: Anyone know what this Spring security error means?
 
Threads others viewed
Error getting Spring security 2 to set up in Spring 2.5
How to implement Spring Form Based Authenticationand Authorization without session scope ?
A better way to display a login failure message
Spring DI help
RichFaces + Spring Security -- Problem Load RichFaces
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture