Hi,
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?
Thanks!
It was due to different version of jersey jars, 1.17 and 2.0. I removed 2.0 in this case because old code depended on 1.17 and issue resolved.