Dear Dan,
thank you very much for your hints. I checked my imports (I imported the cxf
packages wherever they are directly or indirectly used) but the issue still
remains. 

As another attempt, I did as you suggested about the classloader in the
BundleCXFServer:

Endpoint ep = null;
ClassLoader oldTCCL = Thread.currentThread().getContextClassLoader();
try {
   
Thread.currentThread().setContextClassLoader(WSSecurityInterceptor.class.getClassLoader());
    ep = EndpointImpl.publish(addr, pers);
} finally {
    Thread.currentThread().setContextClassLoader(oldTCCL);
}

but this apparently spoils the CleanDb web service functioning also when no
Interceptors are enabled (I get many ClassNotFoundEx probably due to the
class loader modification above).

Do you have any suggestions? 

Thank you again,
matteo
-- 
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-Interceptors-problem-in-OSGi-tp2805910p2827206.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to