aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes unable to run restful webserive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "unable to run restful webserive" Watch "unable to run restful webserive" New topic
Author

unable to run restful webserive

vasu chowdary
Ranch Hand

Joined: Mar 15, 2008
Posts: 90
Hi ,

I am running the following example form resteasy with JAX-RS book.I have used the myeclipse6.0 and tomcat6.0 to run this example.Following is my code











I have successfully compiled above and deployed in tomcat.After that i have tested with junit4 with following code.





If i run this with eclipse in built tomcat then i am getting 400 exception.

If run this with external tomcat then i am getting 404 exception.

Following is web app architecture

customers

------WEB-INF
----------web.xml
----------classes
----------lib

is there any mistake in my code?
Prash Negu
Ranch Hand

Joined: Apr 20, 2009
Posts: 45
I think the resource name you specify using @PATH is relative to application context. I dont see you mentioned context name anywhere. The url should be http://localhost:8080/<context>/customer.

Thanks,
Prashant
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to run restful webserive