1 Reply Latest reply on Aug 19, 2012 10:35 AM by David Baddeley

    RESTeasy setup on AS6

    David Baddeley Newbie



      I am trying to enable RESTEasy within my application (SEAM 2.2.2, JBoss AS6 Final), the documentation specifically says that it is already fully integrated and it should work out of the box. With the following note


          All you have to provide is your JAX-RS service classes packaged within a WAR either as POJOs, CDI beans, or EJBs and provide an empty web.xml file as follows:


           <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">


      Could somebody elaborate on how I go about doing this and possible provide an example .war structure? I can see the .class files in the /deployers/reseasy.deployer/... directory, do I need to reference them?


      I should probably add, I am trying to add this to an existing Web Application, eg. its not a new 'REST specific' application, so I already have a .war archive and web.xml


      Any help is appreciated

        • 1. Re: RESTeasy setup on AS6
          David Baddeley Newbie

          Im still completly stumped with this, can anyone help?


          From looking at previous similar posts it seems that AS 6 is supposed to have all the JAX-RS librarys pre-loaded, but how is this supposed to work as any reference to a JAX-RS class produces compilation errors in Eclipse? the only way I can get rid of these is to manually add jaxrs-api.jar to the project (which it says you dont need to do!).


          I have even tried removing the resteasy.deployer directory completly and adding the librarys to the .ear manually (as per previous JBoss versions) but I cant seem to get this working, and would prefer to get the built-in version working if possible


          Does anyone out there use resteasy with JBoss 6 Final, could they post their project structure?