I am working with a sample RESTEasy 2.0 resource on Spring MVC 3.0 and deplying to Tomcat 6. I can get to my resource through http: //localhost:8080/examples-resteasy-2.1-SN
You can set these in your Tomcat server.xml.
Add a <Context>
element within the <Host>
like below which sets your examples-resteasy-2.1-SNAPSHOT
as the default web app.
<Context docBase="examples-resteasy-2.1-SNAPSHOT" path="" reloadable="true" />
This should allow you to access it as http: //localhost:8080/contacts
Set the path to "myservice" like below
<Context docBase="examples-resteasy-2.1-SNAPSHOT" path="/myservice" reloadable="true" />
should allow you to access it as http: //localhost:8080/myservice/contacts