wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
Author

Trying to deploy JAX WS webservice on Tomcat 7.0.32

Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57
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: 41587
    
  54
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
 
Don't get me started about those stupid light bulbs.
 
subject: Trying to deploy JAX WS webservice on Tomcat 7.0.32