aspose file tools*
The moose likes Web Services and the fly likes Trying to deploy JAX WS webservice on Tomcat 7.0.32 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Trying to deploy JAX WS webservice on Tomcat 7.0.32" Watch "Trying to deploy JAX WS webservice on Tomcat 7.0.32" New topic
Author

Trying to deploy JAX WS webservice on Tomcat 7.0.32

Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 56
Hello

I wrote a simple JaxWS webservice.



I created the sun-jaxws.xml:



And my web.xml file is:




I have also put all the jar files of JAX WS RI on the lib folders of the web service.

I've build the war and it has the expected structure:

META-INF/
WEB-INF/
WEB-INF/classes/...
WEB-INF/sun-jaxws.xml
WEB-INF/web.xml

Now, I've put the war file on the webapps tomcat folder. Finally, I started tomcat. No errors happened.

However, when I try to access the application using the URL : http://localhost:8080/Generate/report, I get the following error on the browser:

HTTP Status 404 - /HelloWorld/hello
type Status report
message /Generate/report
description The requested resource (/Generate/report) is not available.

Anyone knows the cause of the problem?


Thank you
Meghana Reddy
Ranch Hand

Joined: Jan 29, 2002
Posts: 76
Paulo Carvalho wrote: URL : http://localhost:8080/Generate/report


What is Generate in the above URL? That should be the name of the war file(in other words, the context root of the webapp) that you've deployed in tomcat.

Thanks


Meghana Reddy
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Well, the servlet listens to "/report", so any URL needs to start with that. If the endpoint also listens to "/report", the URL would be something like "/report/report". And then you need to prepend the name of the web app, unless this is part of the ROOT web app.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to deploy JAX WS webservice on Tomcat 7.0.32
 
Similar Threads
Illegal null QName prefix argument on Tomcat/Jetty, but no error on WS7
Deploying webservices war file on Apache tomcat
Eclipse 3.3, Glassfish, WebServices and wsimport
Getting ListenerStart error when Deploying Webserices war file on TomCat
Deploy JAXWS (Mustang) WS to Tomcat?