Hello, I have a problem integrating RESTeasy and JBoss AS 5.1 (jdk 1.6 version). I tried posting this over at the RESTeasy space, but for some reason I cannot post anything there. I'm sorry if this is the wrong place, but I think it is the closest...
On to the problem. I followed the RESTeasy documentation to integrate it with my application (bundled as an EAR). I've placed the RESTeasy libs inside the .war (WEB-INF/lib) and my annotated classes in WEB-INF/classes. I've actually tried using the same classes in the RESTeasy bundle, just to see if this works. Oh, and I left out the jaxb jars, because I use JDK 1.6.
I have added the following in my web.xml
<context-param> <param-name>resteasy.resource</param-name> <param-value>org.jboss.resteasy.test.smoke.SimpleResource,org.jboss.resteasy.test.smoke.LocatingResource</param-value> </context-param> <context-param> <param-name>resteasy.servlet.mapping.prefix</param-name> <param-value>/restful-services</param-value> </context-param> <listener> <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class> </listener> <servlet> <servlet-name>Resteasy</servlet-name> <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class> </servlet> <servlet-mapping> <servlet-name>Resteasy</servlet-name> <url-pattern>/restful-services/*</url-pattern> </servlet-mapping>
Originally, I set the resteasy.scan context param to true, but after reading https://jira.jboss.org/browse/RESTEASY-251 I tried using the resteasy.resource context param. Unfortunately, I still get a 404 error: Could not find resource for relative...
Am I missing something or doing anything wrong?
Any help would be greatly appreciated!