Skip to content
Advertisement

Tag: jersey-client

How to force java SSLContext to use TLSv1.1

How do I get a jersey client to use TLSv1.1? I’m trying to force a com.sun.jersey.client.urlconnection.HTTPSProperties (jersey client code eventually goes to this class) to use TLSv1.1 (or TLSv1) to write test code that confirms a server’s protocols. As I setup the client, I do the following: Inside HTTPSProperties (I downloaded the 1.x source so this may be wrong) I

Class not found com.sun.ws.rs.ext.RuntimeDelegateImpl on ubuntu tomcat

I’m using GWT/P to build a webapp which uses javax.ws.rs.client to communicate with rest services. Jersey client is used: It’s deployed on tomcat (7 and 9 versions, both work as expected). However, on one ubuntu server, using tomcat 9 I get following exception: I don’t know why is it looking for com.sun.ws.rs.ext.RuntimeDelegateImpl instead of org.glassfish.jersey.internal.RuntimeDelegateImpl, and that it happens only

Caused by: java.lang.NoClassDefFoundError: io/jsonwebtoken/Jwts

i am using jjwt-0.9.1.jar and runtime gives this exception for jersey reset API call. When i use this code using java main() method, its works perfectly but when i call from servlet to that class, the method throws exception. When call servlet to java class method i.e.createJWTToken() gives following exception in tomcat. Answer The exception is java.lang.NoClassDefFoundError: io/jsonwebtoken/Jwts Check the

Advertisement