| 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?
|
|
|