3 Replies Latest reply on Dec 10, 2013 9:43 AM by Xavier Coulon

    Resteasy

    Marcio Jota Coelho Newbie

      Hi all

      I am trying to implements a resteasy solution in project created with jboss forge.

      Jboss forge just adding this dependency in pom.xml

      <dependency>
          <groupId>org.jboss.spec.javax.ws.rs</groupId>
          <artifactId>jboss-jaxrs-api_1.1_spec</artifactId>
          <scope>provided</scope>
      </dependency>
      

       

      I added manually this others dependencies:

      <dependency>
          <groupId>org.jboss.resteasy</groupId>
          <artifactId>resteasy-jaxrs</artifactId>
          <version>2.3.6.Final</version>
          <scope>provided</scope>
      </dependency>
      <dependency>
          <groupId>org.jboss.resteasy</groupId>
          <artifactId>resteasy-jaxb-provider</artifactId>
          <version>2.3.6.Final</version>
          <scope>provided</scope>
      </dependency>
      
      

       

      This is my full pom.xml

      http://pastebin.com/raw.php?i=dJNRgYvx

       

      My problem appears in eclipse, when I implement the interface PreProcessInterceptor

      Eclipse validate show me this error: "The Provider must implement at least one of the following interfaces: javax.ws.rs.ext.MessageBodyReader, javax.ws.rs.ext.MessageBodyWriter, javax.ws.rs.ext.ExceptionMapper or javax.ws.rs.ext.ContextResolver."


      This header of my class:

      @Named
      @Provider
      @ServerInterceptor
      public class RestSecurityInterceptor implements PreProcessInterceptor
      


      After deploy, the implements worked very well... problem just in eclipse validation...


      I believe there must be some dependency that is missing.
      Could anyone help me?

      thank you