1 Reply Latest reply on May 4, 2015 1:02 AM by valsaraj viswanathan

    Issue with Jersey in WildFly-8.2

    valsaraj viswanathan Master



      I faced issue with running application that uses Jersey to connect to cloud. The jars are bundled in ear and was working fine in JBoss-4.2.2.GA but throwing the following exception in WildFly-8.2.

      Caused by: java.lang.NoSuchMethodError: com.sun.jersey.core.spi.factory.MessageBodyFactory.<init>(Lcom/sun/jersey/core/spi/component/ProviderServices;)V

        at com.sun.jersey.api.client.Client.<init>(Client.java:230) [jersey-client-1.2.jar:1.2]

        at com.sun.jersey.api.client.Client.<init>(Client.java:158) [jersey-client-1.2.jar:1.2]

        at com.sun.jersey.api.client.Client.create(Client.java:573) [jersey-client-1.2.jar:1.2]

      Any solution to fix this?