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

Intermittent ClassNotFoundException when using the Build Forge agent integration

 When using the Build Forge agent integration with RTC on WAS I intermittently get a:
Java.net.SocketException: java.Lang.ClassNotFoundException cannot find the specified class com.ibm.websphere.ssl.protocol.sslSocketFactory
Nothing seems to consistently resolve this, but restarting the WAS server seems to occasionally help.

~Spencer

0 votes


Accepted answer

Permanent link
 This is a complicated issue at the root.  An article will come out soon on jazz.net to fully describe the issue, but quickly the cause is the RTC OSGi not communicating with the WAS OSGi layer.  To resolve the issue we can do one of the following:
1) Change the java.security settings to use the Java JDK implementation of the SSLSocketFactory rather than the WAS implementation.  This is what we do internally for our selfhosting.  This does not use the WAS security implementation which may be problematic in some WAS situations.
2) Change the following entries in <ccm web app deploy location>\ccm\WEB-INF\eclipse\launch.ini to 'fwk', like so:
osgi.parentClassloader=fwk
osgi.contextClassLoaderParent=fwk
This will disable RTC logging as the WAS OSGi logging with override RTC's, but it will use the WAS security implmentation.
3)  Write another application to run with RTC that will call SSLSocketFactory.getDefault().  That will run outside the RTC OSGi and will have access to the WAS implementation.  Once the class is loaded, RTC can access it.  This application will then have to be run whenever the ClassNotFoundException occurs.

~Spencer
Spencer Murata selected this answer as the correct answer

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
× 562
× 36
× 14

Question asked: Apr 26 '13, 12:49 p.m.

Question was seen: 5,909 times

Last updated: Apr 26 '13, 12:55 p.m.

Confirmation Cancel Confirm