title: java.lang.ClassCastException com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.bind.api.JAXBRIContext
body: <p>I have exposed a web service however when client trying to consume the service I can see there is a <code>ClassCastException</code> exception in the server log. and request is not reaching the web service. When I am trying to call the web service it is working from <code>SOAP UI</code>.</p>
  
  <pre><code>java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.bind.api.JAXBRIContext.
  </code></pre>
  
  <p>I have tried using these two solution</p>
  
  <p><a href="https://stackoverflow.com/questions/17114090/java-lang-classcastexception-com-sun-xml-bind-v2-runtime-jaxbcontextimpl-cannot?rq=1">java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.bind.api.JAXBRIContext</a></p>
  
  <p><a href="https://stackoverflow.com/questions/42499436/classcastexception-cannot-be-cast-to-com-sun-xml-internal-bind-v2-runtime-refle/42513439">ClassCastException: Cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor</a></p>
  
  <p>However in my <code>weblogic</code> folder I could not find the conflicting jar.</p>