JAX WS webservice does not take spring bean from applicationcontext, hence throws null pointer exception

后端 未结 6 1822
终归单人心
终归单人心 2021-01-18 07:55

Hi I have got the webservice up and running , i have used jax ws. I have used Spring to be able to use beans with Autowired and stuff that spring gives like property value i

6条回答
  •  滥情空心
    2021-01-18 09:01

    I got the same issue, to resolve it I started the jaxws listener after the spring listener:

        
            org.springframework.web.context.ContextLoaderListener
        
         
            com.sun.xml.ws.transport.http.servlet.WSServletContextListener
        
    

    Hope it helps

提交回复
热议问题