0
votes

while depolying jax ws service on Tomcat 6 i get the following error:

enter image description here

here is what my war directory looks like:

-enter image description here

to deploy my web service i added these jars to the lib directory: enter image description here

the sun-jaxws.xml :

enter image description here

and the web.xml: enter image description here

and my java code is:

@WebService(endpointInterface = "com.ws.MyWebServiceIF")
public class MyWebService implements MyWebServiceIF{
@WebMethod(operationName = "myWebMethod")
@Override
public String myWebMethod(@WebParam(name = "username")String name){

    return "";
}
}

any suggestions please?

1

1 Answers

0
votes

issue solved! i deleted jars i have added to the lib and followed added jars mentionned in the answer of this question.

How to manually deploy a web service on Tomcat 6?

here are they:

webservices-extra.jar
webservices-extra-api.jar
webservices-rt.jar
webservices-tools.jar