Thursday, September 24, 2015

Caused by: java.lang.NoSuchMethodError: javax.xml.ws.WebFault.messageName()Ljava/lang/String;

Issue:

This error is seen when the JAX-WS libraries are missing.

Solution:

When deploying webservice project to the tomcat server, Tomcat do not implement the entire java EE sepcifications and it needs the JAX-WS libraries deployed to support the project.

add the jars in the endorsed directory.

By default the endorsed directory will be taken as $CATALINA_HOME/endorsed.

If you want to force use a different path, Use the following in the setenv.sh or the catalina.sh file.

-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS

0 comments:

Post a Comment