File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to deploy JAX WS webservice on Tomcat 7.0.32

 
Paulo Carvalho
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic