Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323761 - Exception NoClassDefFoundError: javax.net.SocketFactory in SSL plugin
Summary: Exception NoClassDefFoundError: javax.net.SocketFactory in SSL plugin
Status: RESOLVED DUPLICATE of bug 316500
Alias: None
Product: ECF
Classification: RT
Component: ecf.core (show other bugs)
Version: 3.3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: ecf.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-26 17:27 EDT by Alex Blewitt CLA
Modified: 2010-08-26 17:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Blewitt CLA 2010-08-26 17:27:47 EDT
When running with the ECF SDK installed, I get:


osgi> [log;+0100 2010.08.26 22:23:06:804;INFO;org.eclipse.ecf;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf;code=0;message=Unexpected Error in ECFPlugin.start;severity4;exception=java.lang.NoClassDefFoundError: javax/net/SocketFactory;children=[]]]
java.lang.NoClassDefFoundError: javax/net/SocketFactory
	at org.eclipse.ecf.internal.ssl.ECFTrustManager.start(ECFTrustManager.java:83)
	at org.eclipse.ecf.internal.core.ECFPlugin.start(ECFPlugin.java:113)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)


It appears that the ECFTrustManager, defined in the org.eclipse.ecf.ssl bundle, doesn't import javax.net. As a result, you end up with a NoClassDefFoundError as above.

Bundle-SymbolicName: org.eclipse.ecf.ssl
Bundle-Version: 1.0.0.v20100615-1452
Export-Package: org.eclipse.ecf.internal.ssl;x-internal:=true
Ant-Version: Apache Ant 1.7.1
Bundle-Vendor: %plugin.provider
Bundle-Name: %plugin.name
Created-By: 1.5.0_22-b03 (Sun Microsystems Inc.)
Import-Package: org.eclipse.osgi.service.security,javax.net.ssl
Bundle-ManifestVersion: 2
Comment 1 Alex Blewitt CLA 2010-08-26 17:29:08 EDT
Removing the org.eclipse.ecf.ssl bundle from my runtime removes this problem, so I'm pretty sure that's the problem
Comment 2 Scott Lewis CLA 2010-08-26 17:49:06 EDT
Resolving as duplicate of 316500.  As indicated on comment on 316500 comment 1 I still don't quite understand why this wasn't showing up in testing, but perhaps it has something to do with the JRE version.  I'm also going to add Matt Flaher of IBM to 316500...as he is one of the authors of the *.ssl bundles.

*** This bug has been marked as a duplicate of bug 316500 ***