I am getting the following error when deploying a bundle which contains a CXF
consumer for a web service as well as a simple jetty endpoint.
org.apache.camel.RuntimeCamelException: org.apache.cxf.interceptor.Fault:
Could not start Jetty server on port 9,191: Address already in use
Here is what the CXF consumer bean looks like, there is a route that starts
with it in the context:
<cxf:cxfEndpoint
id="initiateCXFConsumer"
address="http://0.0.0.0:9191/JavelinInitiateService"
wsdlURL="wsdl/initiate.wsdl"
serviceClass="com.ihg.webservice.JavelinInitiateService">
<entry key="receiveTimeout" value="120000"/>
<entry key="connectionTimeout" value="120000"/>
<entry key="schema-validation-enabled" value="true" />
<entry key="faultStackTraceEnabled" value="false" />
</cxf:properties>
</cxf:cxfEndpoint>
I also have this jetty endpoint I have added that is causing the issue:
<route id="Ping">
<from uri="jetty:http://0.0.0.0:9191/ping"/>
<setBody>
<simple>${date:now:yyyy-MM-dd'T'HH:mm:ss:SSS}</simple>
</setBody>
</route>
I know the CXF consumers use jetty underneath, so I am not sure what is
wrong with this that causes the collision. In the camel-beans.xml where the
cxf consumer is configured, I have included the following
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
<import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
Anyone have any idea what might be going wrong?
--
View this message in context:
http://servicemix.396122.n5.nabble.com/CXF-Consumer-and-jetty-route-on-same-port-issue-tp5713673.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.