I assume you have proper configs <resteasy:application... in components.xml and seam resource servlet in web.xml...
Then try to put jars into your EAR/lib. You should have at least:
Then additionally the ones for the providers you are to use...
You can set detailed logging in your jboss-log4j.xml to see your resources deployed... try these:
<category name="org.jboss.seam.resteasy"> <priority value="DEBUG"/> </category> <category name="javax.ws.rs"> <priority value="TRACE"/> </category> <category name="org.jboss.resteasy"> <priority value="TRACE"/> </category>
Do you have specific needs to use JBoss 4.2.3? Why not 5.1, which is the default for Seam 2.2?
Yea, I had 3 of the jars and put them in every spot I could think of.
I ended up switching to JBoss 5.1 and upgrading to JBoss Studio 3.0 and recreating a new project from scratch and the layout of the EAR project was slightly different. When I manually copied the 3 jars into the workspace\.metadata\.plugins\org.jboss.ide.eclipse.as.core\jboss-5.1.0.GA_Runtime_Server1271527827812\deploy\SBDPro-ear.ear\lib and adding them to the project-ejb classpath so the actual PingService.java (basic example) would compile everything worked.
Thanks for the reply!!
Even i am also getting the same error as u mention first post in forum but can explain much more clear .
1.what do you mean by endup switching to jboss 5.1 ? means did u used any other server version?
2.why you updated Jboss Studio to 3.0?
3.i cant see any location in metadata as u mentioned so where is my mistake?
your reply is helpful to me.
In the reply I got above he said jboss 5.1 was the default for seam 2.2 so thats why I switched from jboss 4.2.3.
These are the steps I followed to create the RestWebService ear file
1. Created seam ear project using seam-gen ( using Seam 2.2 )
2. Then exported this project into Eclipse 3.3.2
3. Added three 3 jar files jaxrs-api.jar, jboss-seam-resteasy.jar, reateasy-jaxrs.jar into RestWebswervice/WEB-INF/lib
( Followed the instructions in http://docs.jboss.org/seam/2.2.0.GA/reference/en-US/html/webservices.htmld0e22078)
4. From eclipse deployed RestWebService project on JBOss 5.1
5. Then tried accessing the JAX-RS class using url
6. Got HTTP Status 404 error on the browser.
We tried a simil,ar thing with Seam 2.1 and jboss 4.2.3 but were stuck with the same issue.
Looks like seam integration with RestEasy is buggy!!
If anyone has been able to get RestEasy working with seam pls let us Know. We tried it with both Seam 2.1 and Seam 2.2 its not working.
you need to add also the jars of the provider implementation you want to use with your solution e.g. resteasy-atom-provider.jar or resteasy-jaxb-provider.jar, if you have all configs set properly it works.