Re: [Resteasy-users] Running JAX-RS 2.0 O'Reilly book samples on Tomcat..

2014-01-16 Thread Bill Burke
The examples use Jetty. Its probably just a context path issue. On 1/16/2014 12:50 AM, Weinan Li wrote: > Hi Kapil, > > Are you using "oreilly-jaxrs-2.0-workbook/ex03_1” or > "oreilly-workbook/ex03_1”? The former one can only be deployed in a JavaEE > application server that supports JAX-RS 2.0

Re: [Resteasy-users] Running JAX-RS 2.0 O'Reilly book samples on Tomcat..

2014-01-16 Thread Weinan Li
-- Weinan Li On Thursday, January 16, 2014 at 7:00 PM, Kapil Gambhir wrote: > Hi, > thanks for a prompt response, am using the JAX-RS v2, so the > "oreilly-jaxrs-2.0-workbook/ex03_1”. > I am able to run the example with the web.xml (http://web.xml) changes > suggested by you, it made sense

Re: [Resteasy-users] Running JAX-RS 2.0 O'Reilly book samples on Tomcat..

2014-01-16 Thread Kapil Gambhir
Hi, thanks for a prompt response, am using the JAX-RS v2, so the "oreilly-jaxrs-2.0-workbook/ex03_1”. I am able to run the example with the web.xml changes suggested by you, it made sense also but am wondering how the default example (shipped as a zip) worked on jetty (which is also a servlet co

Re: [Resteasy-users] Running JAX-RS 2.0 O'Reilly book samples on Tomcat..

2014-01-16 Thread Weinan Li
I’ve tested ex03_1 after set it up properly and deployed it on Tomcat8. And it works without any problem: $ curl -X POST -H "Content-Type: application/xml" -d "BillBurke256 Clarendon StreetBostonMA02115USA" http://127.0.0.1:8080/ex03_1/customers From catalina.out: Created customer 1 $ cur

Re: [Resteasy-users] Running JAX-RS 2.0 O'Reilly book samples on Tomcat..

2014-01-15 Thread Weinan Li
Hi Kapil, Are you using "oreilly-jaxrs-2.0-workbook/ex03_1” or "oreilly-workbook/ex03_1”? The former one can only be deployed in a JavaEE application server that supports JAX-RS 2.0 spec like WildFly, because it doesn’t have standalone settings in web.xml. Please add following settings you we