To use tapestry-resteasy (an independent module of Tynamo project), you need to add the following dependency to your pom.xml:
Modify your web.xml to include the following:
Create a package named "rest" for your rest services.
Code your singleton resource.
- To name the class use the entity name followed by the word "Resource".
- The @Path should be the entity name in lowercase.
Don't forget to annotate your entities with JAXB annotations. You need at least @XmlRootElement.
Finally contribute yout singleton resource to your AppModule:
If you get this exception:
Add this to your system properties: