Update, problem solved with jss version from fedora: /usr/lib64/jss
2015-10-14 14:27 GMT+02:00 Marcin Mierzejewski <
marcinmierzejewski1024(a)gmail.com>:
I' m trying to build dogtag rest client but after adding jars I
found in
system:
here is the list:
pki-ca.jar
pki-certsrv.jar
pki-cms.jar
pki-cmscore.jar
pki-cmsutil.jar
pki-console.jar
pki-kra.jar
pki-nsutil.jar
pki-ocsp.jar
pki-tks.jar
pki-tomcat.jar
pki-tools.jar
pki-tps.jar
I got some problem with dependencies with them(resteasy was missing) so I
resolved them with maven pom. Now i have problem with mozilla JSS lib. In
mozilla
ftp(https://ftp.mozilla.org/pub/security/jss/releases/) i found
.jar and .so packages for difrent versions(from 3.0 to 4.3 ) but after
checking all of them none of them have inner class SSLVersionRange in
SSLSocket(check stacktrace bellow).
So i checked what is dogtag source package dependecies and all i found in
CMakeLists.txt is that dogtag is build with jss4.jar
*So, my question is what exact version of JSS is dogtag using and where I
can get it? *
Exception in thread "main" java.lang.NoClassDefFoundError:
org/mozilla/jss/ssl/SSLSocket$SSLVersionRange
at
com.netscape.certsrv.client.PKIConnection$JSSProtocolSocketFactory.connectSocket(PKIConnection.java:333)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at
org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at
org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:283)
at
org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:436)
at
org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:102)
at
org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64)
at com.sun.proxy.$Proxy37.listProfiles(Unknown Source)
at
com.netscape.certsrv.profile.ProfileClient.listProfiles(ProfileClient.java:59)
at com.company.CATest.test(CATest.java:93)
at com.company.Main.main(Main.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)