Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Resource not found by JAX WS web service under eclipse

 
Paulo Carvalho
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I developed a little web service using eclipse + JAX WS. I use it to validate the structure of a XML document. When I deploy the web service directly under tomcat, it runs fine and I get the expected result.

However, If I run the webservice FROM eclipse AND using the same tomcat instance, it is not able to find a resource file (the XSD file I used to check the XML structure of a file).

The code to get the URL of this XSD is the following one:



When I deploy the war file directly from tomcat, the "sFile" is located into the WAR under the WEB-INF/classes directory.

What can I do to put it working fine under Eclipse/Tomcat?

Thanks

Regards
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!