Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web service endpoint is hosed when deploying to tomcat using a war file

 
Tony Ennis
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My war file is called myservice.war. The web service endpoint is myendpoint.

My intention is to be able to fetch my wsdl using http://localhost:8080/myendpoint?wsdl This works fine when I run using java6's built-in web service support. However, when I deploy the web service to Tomcat it requires:

http://localhost:8080/myservice/myendpoint?wsdl

While it works it obviously hoses my clients. Would someone know of a tomcat config change to allow me to specify the url? My web.xml is pretty explicit about the url being /myendpoint.

Thanks for any insight.

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd need to deploy the web app into the webapps/ROOT directory in order to use that URL.
 
Tony Ennis
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much. I was able to use the service as-is by setting the wsdl in the wsimport command. If my boss has a problem with it, then I'll ue your solution.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic