This should be
<dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.1.1</version> </dependency>
the correct version.
As you can see only cxf-parent is defining it
2.0.1=javax.ws.rs-api in http://origin-repository.jboss.org/nexus/content/groups/ea/org/jboss/redhat-fuse/fuse-karaf-bom/7.3.0.fuse-730015/fuse-karaf-bom-7.3.0.fuse-730015.pom 2.0.1=javax.ws.rs-api in http://origin-repository.jboss.org/nexus/content/groups/ea/org/jboss/redhat-fuse/fuse-springboot-bom/7.3.0.fuse-730015/fuse-springboot-bom-7.3.0.fuse-730015.pom 2.0.1=javax.ws.rs-api in http://origin-repository.jboss.org/nexus/content/groups/ea/org/jboss/fuse/jboss-fuse-parent/7.3.0.fuse-730020/jboss-fuse-parent-7.3.0.fuse-730020.pom 2.0.1=javax.ws.rs-api in http://origin-repository.jboss.org/nexus/content/groups/ea/io/fabric8/fabric8-project-bom-fuse-karaf/3.0.11.fuse-730016/fabric8-project-bom-fuse-karaf-3.0.11.fuse-730016.pom 2.0.1=javax.ws.rs-api in http://origin-repository.jboss.org/nexus/content/groups/ea/io/fabric8/fabric8-project-bom-camel-spring-boot/3.0.11.fuse-730016/fabric8-project-bom-camel-spring-boot-3.0.11.fuse-730016.pom 2.1.1=javax.ws.rs-api in http://origin-repository.jboss.org/nexus/content/groups/ea/org/apache/cxf/cxf-parent/3.2.7.fuse-730009/cxf-parent-3.2.7.fuse-730009.pom
Otherwise camel with cxf fails on
ID: 99 Address: http://camel-cxf-llowinge.apps.foo311.dos.fuse-qe.eng.rdu2.redhat.com/cxf/rest/srv Encoding: UTF-8 Http-Method: GET Content-Type: Headers: {accept-encoding=[gzip,deflate], Content-Type=[null], forwarded=[for=10.40.204.208;host=camel-cxf-llowinge.apps.foo311.dos.fuse-qe.eng.rdu2.redhat.com;proto=http;proto-version=], host=[camel-cxf-llowinge.apps.foo311.dos.fuse-qe.eng.rdu2.redhat.com], user-agent=[Apache-HttpClient/4.5.4 (Java/1.8.0_181)], x-forwarded-for=[10.40.204.208], x-forwarded-host=[camel-cxf-llowinge.apps.foo311.dos.fuse-qe.eng.rdu2.redhat.com], x-forwarded-port=[80], x-forwarded-proto=[http]} -------------------------------------- 08:48:09.193 [http-nio-8080-exec-9] ERROR o.a.c.processor.DefaultErrorHandler - Failed delivery for (MessageId: ID-camel-cxf-1-tmhlm-1547196274562-0-198 on ExchangeId: ID-camel-cxf-1-tmhlm-1547196274562-0-197). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[ID-camel-cxf-1-tmhlm-1547196274562-0-197] Message History --------------------------------------------------------------------------------------------------------------------------------------- RouteId ProcessorId Processor Elapsed (ms) [route1 ] [route1 ] [cxfrs://bean:rsServer ] [ 1] [route1 ] [to1 ] [cxfrs:bean:rsClient?synchronous=true ] [ 1] Stacktrace --------------------------------------------------------------------------------------------------------------------------------------- org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[ID-camel-cxf-1-tmhlm-1547196274562-0-197] at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1846) at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:385) at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:64) at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.asyncInvoke(CxfRsInvoker.java:95) at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.performInvocation(CxfRsInvoker.java:69) at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:193) at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:103) at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267) at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:216) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:301) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:276) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1100) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:687) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1538) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1494) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/client/CompletionStageRxInvoker at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:223) at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.invokeHttpClient(CxfRsProducer.java:296) at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.process(CxfRsProducer.java:101) at org.apache.camel.impl.SynchronousDelegateProducer.process(SynchronousDelegateProducer.java:62) at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ... 58 common frames omitted Caused by: java.lang.ClassNotFoundException: javax.ws.rs.client.CompletionStageRxInvoker at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:94) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 63 common frames omitted
- is related to
-
ENTESB-10095 Karaf BOM contains wrong version javax.ws.rs-api dependency
- Closed
- relates to
-
ENTESB-10331 PME adjustments break PNC build
- Closed
-
ENTESB-9960 Align javax.ws.rs-api-version
- Closed