0 Replies Latest reply on Jun 21, 2010 4:02 AM by varkon

    RESTeasy does not scan annotated classes

    varkon Newbie

      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





      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!