I get the NoSuchMethodError when trying build the REST service using jersey. Any help would be much appreciated.
My POM.xml :
I faced the issue too recently. Check if class with name com.sun.jersey.core.reflection.ReflectionHelper
is present in any other jar.
For me I had caliper.jar
also, and it was being loaded from there instead. That class did not have getContextClassLoaderPA.
Do a grep -ir com.sun.jersey.core.reflection.ReflectionHelper *
to see if any other jar shows up the same class.
I had the following exception: java.lang.IllegalAccessError: tried to access method com.sun.jersey.core.spi.factory.ResponseImpl.<init etc.
This may suggest that there is an internal Weblogic issue. I was updating the same deployment with newer wars. After a period, it looks like the update process is not unloading the old war dependencies. I removed manually from the weblogic directories the deployed war files. I wasn't able to remove two wars: the current one and the replaced one, while the managed server was running. Directories of interest: 12.1.3\user_projects\domains\wl_server\servers\managed_1\stage, 12.1.3\user_projects\domains\wl_server\servers\managed_1\tmp_WL_user, 12.1.3\user_projects\domains\wl_server\servers\AdminServer\upload.
After stopping the managed server, I could remove the old war, leaving only the latest war. On managed_1 start, the latest war is working without the weird exception.