I'm migrating our application to the newer version of Karaf and I started testing our application on karaf 4.2.0M2. Before 4.2.0M2 I performed some tests on Karaf 4.1.5 and it worked fine, but on 4.2.0M2 I hit an issue. I am getting the flowing error when I invoke CXF REST endpoint that uses third party bundle (AWS SDK):
javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory not found. I am using apache CXF 3.2.2 and the problem seems to be related to CXF. For some reason CXF class loader does not see com.ctc.wstx.stax provided by system bundle. It works fine when I explicitly change class loader like this: ClassLoader tccl = Thread.currentThread() .getContextClassLoader(); Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader()); my code that uses AWS SDK Thread.currentThread().setContextClassLoader(tccl); As I understood before karaf 4.2.0, cxf relied on special overrides of the apis and impls that does not work with java 9, so those overrides were deleted from karaf 4.2.0. Is there any way to make those packages visible to CXF in karaf 4.2.0? -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html
