Force jar loading in GlassFish

131 Views Asked by At

Our web app use RestEasy (specifically version 3.0.10.Final). The problem is that, when we use the javax.ws.rs.core.Response class located at jaxrs-api-3.0.10.Final.jar, it seems to conflict with the same class javax.ws.rs.core.Response, but from the library /opt/GlassFish3/glassfish/modules/jersey-core.jar (or some other jar in the bundles), which seems to be preferably loaded.

Resulting in the following error:

java.lang.NoSuchMethodError: javax.ws.rs.core.Response.readEntity (Ljava / lang / Class;) Ljava / lang / Object;

Is it possible to 'force' the load of the jaxrs-api-3.0.10.Final.jar library in some way instead of jersey-core.jar?

Can you suggest any solution?

(We don't use MAVEN)

Thanks and best regards

0

There are 0 best solutions below