This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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

Trying to deploy JAX WS webservice on Tomcat 7.0.32

Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57

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:


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.


Meghana Reddy
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41173
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 - my free Android networking tools app
It is sorta covered in the JavaRanch Style Guide.
subject: Trying to deploy JAX WS webservice on Tomcat 7.0.32
Similar Threads
Deploying webservices war file on Apache tomcat
Getting ListenerStart error when Deploying Webserices war file on TomCat
Eclipse 3.3, Glassfish, WebServices and wsimport
Illegal null QName prefix argument on Tomcat/Jetty, but no error on WS7
Deploy JAXWS (Mustang) WS to Tomcat?