quickly tested with these settings and it works: 1. pom.xml (to share dependencies)
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.test</groupId> <artifactId>test</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <dependencies> <dependency> <groupId>org.apache.tomee</groupId> <artifactId>javaee-api</artifactId> <version>7.0-1</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>4.3.3.RELEASE</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId> <version>3.1.10</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-management</artifactId> <version>3.1.10</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-service-description</artifactId> <version>3.1.10</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.0.0</version> </plugin> <plugin> <groupId>org.apache.tomee.maven</groupId> <artifactId>tomee-maven-plugin</artifactId> <version>7.0.2</version> </plugin> </plugins> </build> </project> Note: i added rt-management and rt-service-description cause there are provided by tomee but if you dont add them in the webapp the webapp will try to load them messing up the classloader. I think - didnt check - you can avoid the need to add them deactivating in the cxf spring context both features (JMX and wadl support). Otherwise just add both jars. 2. conf/system.properties: openejb.classloader.forced-load = org.apache.cxf,org.springframework.,javax.ws.rs. 3. conf/conf.d/cxf-rs.properties disabled=true My services just GET another url but it works without classloading issues: package com.test; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.core.MediaType; @Path("bug") public class Bug { @GET @Produces(MediaType.TEXT_PLAIN) public String get() { return ClientBuilder.newClient().target("https://google.fr").request().get(String.class); } } Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2017-03-12 12:57 GMT+01:00 Romain Manni-Bucau <rmannibu...@gmail.com>: > share a project reproducing the issue anyone there can run. Best way is a > maven project with tomee-maven-plugin setup. The to run we just do "mvn > clean package tomee:run" then execute a curl or request to reproduce the > issue. > > > Romain Manni-Bucau > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <https://blog-rmannibucau.rhcloud.com> | Old Blog > <http://rmannibucau.wordpress.com> | Github > <https://github.com/rmannibucau> | LinkedIn > <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory > <https://javaeefactory-rmannibucau.rhcloud.com> > > 2017-03-12 8:29 GMT+01:00 syadav <b.srisai...@gmail.com>: > >> I did not understand this. I am using eclipse to build project and after >> that >> I am manually deploying the build in tomee and starting. >> So what you want me to do now. >> >> >> >> -- >> View this message in context: http://tomee-openejb.979440.n4 >> .nabble.com/Camel-CXF-in-tomee-tp4681184p4681283.html >> Sent from the TomEE Users mailing list archive at Nabble.com. >> > >