ivan-ra opened a new issue, #607:
URL: https://github.com/apache/camel-karaf/issues/607

   Any route with cxfrs/cxfws service endpoint i install into karaf raises 
exception 
   ```
   org.apache.cxf.service.factory.ServiceConstructionException: null
        at 
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:219)
 ~[?:?]
        at 
org.apache.camel.component.cxf.jaxrs.CxfRsConsumer.createServer(CxfRsConsumer.java:67)
 ~[?:?]
        at 
org.apache.camel.component.cxf.jaxrs.CxfRsConsumer.doStart(CxfRsConsumer.java:83)
 ~[?:?]
   ...
   Caused by: java.io.IOException: Cannot find any registered 
HttpDestinationFactory from the Bus.
        at 
org.apache.cxf.transport.http.HTTPTransportFactory.getDestination(HTTPTransportFactory.java:286)
 ~[?:?]
        at 
org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:86) ~[?:?]
        at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:65) ~[?:?]
        at 
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:168)
 ~[?:?]
        ... 29 more
   ```
   I am using main branch (4.10.2-SNAPSHOT) where cxf 4.1.1 supports jetty 12, 
so it compatible now with camel. For standalone run is enough to add camel-cxf, 
camel-jetty (4.10.2) dependencies, plus cxf-rt-transports-http-jetty (4.1.1).
   Bundle cxf-rt-transports-http-jetty solves problem, but there are no 
packages from this bundle in camel-cxf-all bundle. I've tried to make custom 
feature with this bundle, but karaf cant start it (goes into endless waiting):
   ```
        <feature name="cxf-http-jetty" version="${cxf-version}">
                <feature>camel-cxf</feature>
                <feature>camel-jetty</feature>
                <bundle dependency="true" 
start-level="40">mvn:jakarta.servlet/jakarta.servlet-api/5.0.0</bundle>
                <bundle 
start-level="40">mvn:org.apache.cxf/cxf-rt-transports-http-jetty/${cxf-version}</bundle>
                <capability> cxf.http.provider;name=jetty </capability>
        </feature>
   ```
   How to hook http-jetty transport now?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to