Hello,
i am facing the following problem:
I am using a closed source legacy application ( kind of application server )
which uses AXIS 1 as webservice engine.
I have the possibility to extend the applications running on the
applicationserver through a progamming interface. In this extensions i am
trying to use CXF, but this won't work this easy because , both Axis1 and
CXF need the wsdl4j.jar but in different versions.
Is there a way to use a own classloader ? I tried to create a dynamic
client with my own newly created URLClassloader which didn't work
JaxWsDynamicClientFactory jwdcf = JaxWsDynamicClientFactory.newInstance();
Client client = jwdcf.createClient(URL,urlCl);
As the second approache i tried to create CXF through the classloader like
this :
Class<JaxWsDynamicClientFactory> c = (Class<JaxWsDynamicClientFactory>)
urlCl.loadClass("org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory");
c.newInstance();
which failed with a instatiation exception.
Is there a way to use CXF with its own classloader which has own versions of
Jars ?
--
View this message in context:
http://www.nabble.com/CXF-with-own-Classloader-tp23445345p23445345.html
Sent from the cxf-user mailing list archive at Nabble.com.