Hi, Could you take a look into the CXF system test: org.apache.cxf.systest.jaxws.beanpostprocessor.BeanPostProcessorTest.java and check what is the difference with your configuration?
Regards, Andrei. From: Iacopo Rozzo [mailto:[email protected]] Sent: Montag, 17. November 2014 17:24 To: [email protected] Subject: Auto registration of JAX-WS services. Hi, I'm trying to have classes annotated with @WebServices automatically published by CXF, except for the ones declared in the classic Spring XML configuration<http://cxf.apache.org/docs/jax-ws-configuration.html>. I'm using CXF 3.0.2 and Spring 4.0.1. Is there any way to have this with CXF 3 or if there is some ongoing development ? I did some tests with class JaxWsWebServicePublisherBeanPostProcessor<https://cxf.apache.org/javadoc/latest/org/apache/cxf/jaxws/spring/JaxWsWebServicePublisherBeanPostProcessor.html> , that according to the javadoc is supposed to do exactly what I'm looking for, but with my set-up doesn't seem to work properly. Looks like the service beans are processed and published somewhere: 16:31:46,828 INFO [org.apache.cxf.jaxws.spring.JaxWsWebServicePublisherBeanPostProcessor] (ServerService Thread Pool -- 70) Publishing bean tempconvert class it.iacopo.tempconvert.TempConvertImplServiceImpl as a service at it.iacopo.tempconvert.TempConvertImplServiceImpl. But they are not available through the CXFServlet that I registered (programmatically through org.springframework.web.WebApplicationInitializer ). I think that the problem is that this class works only when a servlet specific Spring WebApplicationContext is used (the class is implementing ServletConfigAware), but I didn't found any documentation mentioning this. Could you confirm and suggest me whether should I open an issue or not? Thanks For more details checkout the test application I developed at https://bitbucket.org/iacoporozzo/spring-cxf-webapp refer to branch "auto-registration". Best regards, Iacopo Rozzo Software Development Engineer, Framework R&D-AQG-SCS-CAS-FRW Amadeus IT Group SA Phone: (+33)4 97 15 87 39 Office: EA7072 [Amadeus logo]<http://www.amadeus.com/blog/?AMAIL=1178>
