Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Error using SSL mode: java.lang.NoClassDefFoundError: javax.crypto.b (initialization failure)

I was trying to connect to RTC client with an java application, and seeing this error:
Jun 28, 2013 5:00:31 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Exception in thread "main" java.lang.NoClassDefFoundError: javax.crypto.b (initialization failure)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:168)
    at javax.crypto.KeyGenerator.a(Unknown Source)
    at javax.crypto.KeyGenerator.<init>(Unknown Source)
    at javax.crypto.KeyGenerator.getInstance(Unknown Source)
    at com.ibm.jsse2.vb.d(vb.java:79)
    at com.ibm.jsse2.jb.<init>(jb.java:25)
    at com.ibm.jsse2.lb.a(lb.java:386)
    at com.ibm.jsse2.lb.a(lb.java:243)
    at com.ibm.jsse2.kb.s(kb.java:327)
    at com.ibm.jsse2.kb.a(kb.java:529)
    at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:300)
    at com.ibm.jsse2.SSLSocketImpl.h(SSLSocketImpl.java:403)
    at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:774)
    at com.ibm.jsse2.k.write(k.java:7)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134)
    at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
    at com.ibm.adt.oslc.rtc.TeamConcertRepository.getClient(TeamConcertRepository.java:58)
    ...

What seems to the problem, any thing I missed?

0 votes



One answer

Permanent link
Hi Tao,
I found the resolution in the internet: http://clouddb.typepad.com/daas/2009/09/ec2-api-tools-and-ibm-jre-javalangnoclassdeffounderror-javaxcryptob.html. Could you try modifying your java.security file as mentioned in that link?

Let me know if it helps.
Best regards,
Krzysztof Kazmierczyk

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Jun 28 '13, 5:18 a.m.

Question was seen: 11,008 times

Last updated: Jun 28 '13, 6:00 a.m.

Confirmation Cancel Confirm