4 Replies Latest reply on Nov 1, 2013 10:14 AM by rdul064

    App with custom ContainerResponseFilter (JAX-RS fails)

    rdul064

      Hi all,

       

      I created a very simple demo application which contains a custom ContainerResponseFilter class.

       

      @Provider

      public class WrapPayloadFilter implements ContainerResponseFilter {

          @Override

          public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {

       

      During deployment I get the following, strange in my opinion, exception

       

      19:33:54,198 WARN  [org.jboss.modules] (MSC service thread 1-7) Failed to define class be.rubus.web.cdi.message.demo.communication.WrapPayloadFilter

      in Module "deployment.exampleRest.war:main" from Service Module Loader: java.lang.LinkageError:

      Failed to link be/rubus/web/cdi/message/demo/communication/WrapPayloadFilter (Module "deployment.exampleRest.war:main" from Service Module Loader)

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)


      I have also a class with that extends Application and is correctly annotated

       

      @ApplicationPath("/data")

      public class RegistrationApplication extends Application {

       

      I'm using Wildfly beta 1.

      I also tried with an upgraded version of reasteasy (3.0.4) using this info  -> The same issue.

       

      The app is running fine on Glassfish 4.0

       

      Any one an idea what I'm doing wrong/I'm missing.

       

      Thanks

      Rudy