Hi Claus,
thanks for good hint. I changed dependencies:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf</artifactId>
<version>${camel.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>
</dependency>
and I got new exception:
Caused by: java.io.IOException: Cannot find any registered
HttpDestinationFactory from the Bus.
at
org.apache.cxf.transport.http.HTTPTransportFactory.getDestination(HTTPTransportFactory.java:295)
at
org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:142)
Finaly I found a solution. Maybe will be useful to somebody:
At first, I missed CXF servlet configuration in web.xml:
<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
And the next point is to configure cxfEndpoint:
I thought that the address is in format "http://localhost:8080/roleservice".
But is not, just have to use "/roleservice" because of tomcat http transport
and not jetty..
<cxf:cxfEndpoint id="serviceEndpoint"
address="roleservice"
serviceClass="com.test.schemas.role.RoleEndpoint"
wsdlURL="service/ws-role.wsdl"
endpointName="s:RoleService"
serviceName="s:RoleEndpointService"
xmlns:s="http://www.test.com/schemas/Role"/>
--
View this message in context:
http://camel.465427.n5.nabble.com/CXF-stop-working-after-upgrade-to-2-11-tp5732307p5732352.html
Sent from the Camel - Users mailing list archive at Nabble.com.