JAX-WS and SpringBeanAutowiringSupport don't work on Tomcat 7 [SPR-9786]

See original GitHub issue

Jurica 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:closed
  • Created 11 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
spring-projects-issuescommented, Jan 11, 2019

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

0reactions
spring-projects-issuescommented, Jan 12, 2019

Bulk closing outdated, unresolved issues. Please, reopen if still relevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring - WSServletContainerInitializer and ... - Stack Overflow
My colleague tried it with Tomcat 7.0.30 and the autowiring didn't work (7.0.32 gives the same problem, currently this is the newest). It...
Read more >
How to autowire spring beans in JBoss 7.1.1 with CXF?
The second workaround was wiring JAX-WS endpoints to extend SpringBeanAutowiringSupport, but that did not work either.
Read more >
Spring Dependence Injection in JAX-WS (@WebService) + ...
Spring Dependence Injection in JAX-WS (@WebService) + Tomcat 7 - does not working - returns NPE. skull. Igor Custodio , Greenhorn.
Read more >
Deploy JAX-WS web services on Tomcat - Mkyong.com
Here's a guide to show you how to deploy JAX-WS web services on Tomcat servlet container. See following summary steps of a web...
Read more >
Apache Tomcat 7 (7.0.109) - Introduction
These are some of the key tomcat directories: ... Doing 3.x or 4.x things to 7 will probably not work in most cases...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found