I have a simple web-service that all it does is print "Hello World", I'm following the example at the "Jave EE tutorial" here: http://java.sun.com/javaee/5/docs/tutorial/doc/bnayn.html Java EE Tutorial example However I'm not using the Sun Java Server and instead I'm using Tomcat so I can't deploy with their instructions.
This is my "web-service" which is almost identical to the one in the example: package helloservice; import javax.jws.WebService; import javax.jws.WebMethod; @WebService public class Hello { @WebMethod public String sayHello(String name) { return "Hello " + name; } } I have created a war file for this small web-service which contain the following files: 0 Tue Mar 18 21:43:50 GMT+02:00 2008 META-INF/ 102 Tue Mar 18 21:43:48 GMT+02:00 2008 META-INF/MANIFEST.MF 0 Tue Mar 18 21:43:50 GMT+02:00 2008 WEB-INF/ 837 Tue Mar 18 18:29:02 GMT+02:00 2008 WEB-INF/web.xml 0 Tue Mar 18 21:43:50 GMT+02:00 2008 WEB-INF/lib/ 948 Tue Mar 18 21:43:50 GMT+02:00 2008 WEB-INF/lib/HelloService.jar where the HelloService.jar contain the following files: 0 Tue Mar 18 21:43:50 GMT+02:00 2008 META-INF/ 102 Tue Mar 18 21:43:48 GMT+02:00 2008 META-INF/MANIFEST.MF 0 Tue Mar 18 20:38:58 GMT+02:00 2008 helloservice/ 690 Tue Mar 18 21:43:50 GMT+02:00 2008 helloservice/Hello.class my web.xml is very simple: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <display-name>HelloService</display-name> <listener> <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class> </listener> <servlet> <servlet-name>HelloService</servlet-name> <servlet-class>helloservice.Hello</servlet-class> </servlet> <servlet-mapping> <servlet-name>HelloService</servlet-name> <url-pattern>/helloservice</url-pattern> </servlet-mapping> <session-config> <session-timeout>30</session-timeout> </session-config> </web-app> I deployed the webapp with the tomcat manager but when I click "Start" in "HelloService" then it tells me: FAIL - Application at context path /HelloService could not be started Also I am unable to access the wsdl of the web-service at: http://localhost:8080/HelloService/helloservice?wsdl Do you guys know what could be the problem? Any help would be appreciated, thanks :) -- View this message in context: http://www.nabble.com/Having-problem-deploy-a-simple-webapp-tp16129389p16129389.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]