This is the problem occurred while I am developing the jsp application to consume web service. I used tomcat 7.0.14 and java 1.6.0_22.
The solution is:
- use endorsed mechanism for tomcat. (add the webservices-api.jar file in the catalina_home/endorsed/) directory. then add some configuration in the tomcat. in windows we can click on configure and follow the steps.
some few links talks about it.
http://dev-answers.blogspot.it/2010/02/configure-endorsed-libraries-in-tomcat.html
http://brightdadson.blogspot.it/2010/03/javalangnosuchmethoderror.html
http://www.fromdev.com/2010/01/trying-to-run-jax-ws-sample-application.html
Exception in thread
"main"
java.lang.NoSuchMethodError: javax.xml.ws.WebFault.messageName()Ljava/lang/String;
[java] at com.sun.xml.ws.model.RuntimeModeler.processExceptions(RuntimeModeler.java:1162)
[java] at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:898)
[java] at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:666)
[java] at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:420)
[java] at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel
The solution is:
- use endorsed mechanism for tomcat. (add the webservices-api.jar file in the catalina_home/endorsed/) directory. then add some configuration in the tomcat. in windows we can click on configure and follow the steps.
some few links talks about it.
http://dev-answers.blogspot.it/2010/02/configure-endorsed-libraries-in-tomcat.html
http://brightdadson.blogspot.it/2010/03/javalangnosuchmethoderror.html
http://www.fromdev.com/2010/01/trying-to-run-jax-ws-sample-application.html
This comment has been removed by the author.
ReplyDeleteThanks for sharing. Its really very useful.
ReplyDelete