khaled_jawaher -2 Junior Poster in Training

i am using tomcat7.0,jdk1.6,and i downloaded the jax-wsri jar files.
first i created folder named ws in webapps in tomcat folder.
then in ws folder i created WEB-INF folder and META-INF.and in WEB-INF i created folder classes&folder lib.

then i created the web service class as follows

package hello;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.*;
@WebService public class HelloWorld{
@WebMethod public String Hello(){
String s;
return s;
public static void main(String[] args) {

				new HelloWorld());


i compiled it and saved HelloWorld.class in:webapps\ws\WEB-INF/classes\HelloWorld.class

after that i created web.xml that is

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="" 
xsi:schemaLocation="                "     

and saved it in webapps/ws/WEB-INF

then i created sun-jaxws

<?xml version="1.0" encoding="UTF-8"?> <endpoints version="2.0" xmlns="">   <endpoint implementation="hello.HelloWorld" name="HelloWorld" url-pattern="/HelloWorld"/> </endpoints>

and save it in webapps/ws/WEB-INF

i moved also all jar files from jaxws-ri to webapps\ws\WEB-INF\lib directory

after that i run tomcat and browse through the address http://localhost:8080/HelloWorld/
but i am receiving the requested resource (/HelloWorld/) is not available.
i don't know if anybody can help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.