NoClassDefFoundError for com.sun.xml.internal.ws.fault.SOAPFaultBuilder

浪尽此生 提交于 2019-12-05 10:23:36

I had the same erorr and I resolved this issue by deleting the jax-impl.jar from the tomcat lib folder. It was a possible conflict of the jaxb jar versions with one of my webapps installed in tomcat.

http://programtalk.com/java/i-was-running-gwt-application-on-tomca/

Kranthi

I have encountered the same problem and I could subsequently resolve this.

Due to the following error mentioned in the Problem, the underlying cause of the SOAP Fault could not be found.

I followed the steps mentioned in the following link, to identify the reason for NoClassDefFoundError.

http://javarevisited.blogspot.in/2011/06/noclassdeffounderror-exception-in.html

I could find the following errors in my application log:

java.lang.ExceptionInInitializerError
Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.internal.bind.api.JAXBRIContext

The reason for the above classcast exception is due to conflicting jar files.

rt.jar (this is present in jre classpath) jaxb-impl-2.0.1.jar (this is present in my application classpath).

I have removed the file jaxb-impl-2.0.1.jar from my classpath and the actual error is gone.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!