web services - error 404 due to mishandling of a war file, maybe? -


i'm trying deploy java project on tomcat via war file, got 404-error when enter above url in favorite navigator. followed this tutorial.

to deploy project, puted war file under ${tomcat}/webapp.

here sun-jaxws.xml

<?xml version="1.0" encoding="utf-8"?> <endpoints   xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime"   version="2.0">   <endpoint       name="projetservices"       implementation="com.bh.services.service"       url-pattern="/service"/> </endpoints> 

web.xml

<?xml version="1.0" encoding="utf-8"?> <!doctype web-app public "-//sun microsystems,  inc.//dtd web application 2.3//en" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">  <web-app>     <listener>         <listener-class>             com.sun.xml.ws.transport.http.servlet.wsservletcontextlistener         </listener-class>     </listener>     <servlet>         <servlet-name>service</servlet-name>         <servlet-class>             com.sun.xml.ws.transport.http.servlet.wsservlet         </servlet-class>         <load-on-startup>1</load-on-startup>     </servlet>     <servlet-mapping>         <servlet-name>service</servlet-name>         <url-pattern>/service</url-pattern>     </servlet-mapping>     <session-config>         <session-timeout>120</session-timeout>     </session-config> </web-app> 

url : localhost:8088/projetservices/service

here project architecture:

enter image description here

please how can resolve problem ?


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -