tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: Autowired spring bean not working in tomcat 7.0.35 with jax-ws
Date Thu, 07 Feb 2013 08:11:28 GMT
2013/2/7 J- MAN <>:
> Hi,
> On tomcat 7.0.35 when i have 2 listeners (jax-ws and spring) in my web.xml my spring
beans do not get initialized.  It seems as though it initializes my the jax-ws webservice
class via sun-jaxws.xml before initializing my beans.  It works fine in Tomcat 6, any way
to get this to work in Tomcat 7?
> web.xml snippet is below.
> Any ideas?
> <?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns=""
 xmlns:xsi=""   xsi:schemaLocation="">
>         <!-- The definition of the Root Spring Container shared by all Servlets  
              and Filters HD -->      <context-param>         <param-name>contextConfigLocation</param-name>
         <param-value>classpath:webservices_context.xml</param-value>    </context-param>
>         <!-- Creates the Spring Container shared by all Servlets and Filters HD -->
    <listener>              <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> <listener>        <listener-class>      
       </listener-class>    </listener>
> <servlet>               <servlet-name>testService</servlet-name>  
       <load-on-startup>1</load-on-startup>      </servlet>      <servlet-mapping>
              <servlet-name>testService</servlet-name>                <url-pattern>/ws/*</url-pattern>
> </web-app>

1. You suspect that your listeners are called in wrong order?
In what order do you expect them to be called?

2. Try "logEffectiveWebXml" option on Context

3. What are your evidences?

4. If you cannot get much from logging, maybe debugging would help

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message