0

I am getting an exception as given below. I want Response class to be loaded from jawax-ws-rs.api.jar. but its getting loaded from the j2ee.jar and throwing the below error:-

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

Is there any way we can skip loading of j2ee.jar at startup of WebSphere?

Gas
  • 17,601
  • 4
  • 46
  • 93

1 Answers1

0

Your question is incorrect, probably what you really want is to replace JAX-RS engine provided with WAS with some third part. And you should never pack j2ee.jar with your application as all required classes are already loaded by the server.

Check the following posts and links:

Community
  • 1
  • 1
Gas
  • 17,601
  • 4
  • 46
  • 93