PS: actually should be a side effect, at a moment jersey was bundling api with its impl so we needed to force jaxrs to be loadable from the webapp but now it is no more the case so we can remove this hack which would prevent API to be loaded from the webapp first. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau
2014-03-26 11:16 GMT+01:00 Romain Manni-Bucau <[email protected]>: > openejb.classloader.forced-skip = javax in confi/system.properties > (should be limited to jaxrs i guess) make it working. Didnt go futher > ATM to see if that's a bug or side effect of jersey > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > > 2014-03-26 9:48 GMT+01:00 John Ang <[email protected]>: >> I'm assuming you're referring to excluding the APIs from being included into >> the web app class path. I tried that with the following exclusions: >> >> <exclusions> >> <exclusion> >> <groupId>javax.ws.rs</groupId> >> <artifactId>javax.ws.rs-api</artifactId> >> </exclusion> >> <exclusion> >> <artifactId>javax.annotation-api</artifactId> >> <groupId>javax.annotation</groupId> >> </exclusion> >> <exclusion> >> <artifactId>javax.inject</artifactId> >> <groupId>org.glassfish.hk2.external</groupId> >> </exclusion> >> <exclusion> >> <artifactId>validation-api</artifactId> >> <groupId>javax.validation</groupId> >> </exclusion> >> </exclusions> >> >> I re-ran the application via "mvn clean install tomee:run" and I checked >> /tomee/lib/ as well as /tomee/webapp/tomee-test/WEB-INF/lib .. I have more >> or less confirmed that the APIs are no longer there. >> >> By the way, prior to this, I did some googling and kept getting referred to >> http://ci.apache.org/projects/openejb/examples-generated/tomee-jersey-eclipselink/index.html. >> I downloaded that package and tried again with the same mvn command and got >> the same exception. >> >> Can somebody try out my sample attached above and see if they get the same >> error as I do? >> >> Any other clues? >> >> >> >> -- >> View this message in context: >> http://openejb.979440.n4.nabble.com/TomEE-1-6-0-Jersey-2-6-ClassCastException-problem-tp4668363p4668367.html >> Sent from the OpenEJB User mailing list archive at Nabble.com.
