JAX-WS and SpringBeanAutowiringSupport don't work on Tomcat 7 [SPR-9786]
See original GitHub issueJurica Krizanic opened SPR-9786 and commented
Hi, I am having the problem with SpringBeanAutowiringSupport, I think it is the same as the issue #10323 which is marked as resolved.
I am getting the message below in the log file, and dependencies of AdminWS are not injected, so I am getting NullPointerException. I am using @Autowired annotation to incject the dependecies.
2012-09-11 14:32:46,248 DEBUG SpringBeanAutowiringSupport:89 - Current WebApplicationContext is not available for processing of AdminWS: Make sure this class gets constructed in a Spring web application. Proceeding without injection.
It won’t work with combination Spring 3.1.2 + Tomcat 7.0.30.
It works fine with Tomcat 6.0.35.
Can anyone provide help?
Thank you in advance!
Best regards, Jurica Krizanic
Affects: 3.1.2
6 votes, 15 watchers
Issue Analytics
- State:
- Created 11 years ago
- Comments:11
Top Related StackOverflow Question
Amra Smajic commented
Hi I had the same problem… I’m using Tomcat 7.0.57 and Spring 3.1.0.RELEASE
I solved it with adding <absolute-ordering /> in my web.xml
Bulk closing outdated, unresolved issues. Please, reopen if still relevant.