error java.lang.LinkageError when using cxf in karaf

261 views Asked by At

i am using cxf 3.3.5 and karaf 4.2.7 I have an application that is a soap client and makes requests for a soap service, if no errors occur on the remote service, then everything is fine, but when an exception occurs, then I see an error for the place of correct error handling

Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "javax/xml/soap/SOAPFault"
    at javax.xml.ws.soap.SOAPFaultException.<init>(SOAPFaultException.java:63)
    at org.apache.cxf.jaxws.JaxWsClientProxy.mapException(JaxWsClientProxy.java:195)
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
    at com.sun.proxy.$Proxy126.insupdDevice(Unknown Source)

as far as i understood the problem is in package javax.xml.soap package which was loaded saaj-api(was installed during feature:install cxf)

I saw the topic http://karaf.922171.n3.nabble.com/Loader-constraint-violation-javax-xml-soap-SOAPFault-td4056103.html, but as far as I understood there is still no solution

any ideas?

0

There are 0 answers