Hi All,
I am trying to migrate an application from glassfish to Payara 5, existing code has reference to the com.sun.jersey.client, com.sun.jersey.server and com.sun.jersey.servlet dependencies.
When deploying the application on Payara I am getting below error:
java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper.classForNameWithExceptionPEA(Ljava/lang/String;)Ljava/security/PrivilegedExceptionAction;
While troubleshooting I tried as below :
1.I added the below dependency:
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-core</artifactId>
<version>1.17.1</version>
</dependency>
But no luck.
2.I also tried adding the latest version of jersey available in maven:
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>2.26</version>
</dependency>
And other related dependencies.
Please advice how to fix it.
Thanks,
Priyanka