gongdaowen / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

Jetty 9.0.6 SSLSocketFactory class not found #176

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
I'm using on Windows 7 32 bit, jdk1.7.40, Eclipse EE Kepler Service Release 1 
and runjettyrun_feature_support_jetty9_1.3.3.201301020707.jar.
I try to use runjettyrun with jetty 9.0.6 installed in other directory using 
RunConfiguration with Jetty version Jetty 9.0.0 M3 but chaging JettyClassPath 
in this mode:
I deselected all jar in RJRJetty and I check only 
run-jetty-run-bootstrap-jetty9.jar and in Custon Ketty classpath I added all 
jar present in my local jetty 9.0.6 directory (/lib and all subdirectories).
When run my webApplication with RJR an exception appears :

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/eclipse/jetty/http/ssl/SslContextFactory
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
    at java.lang.Class.getMethod0(Class.java:2764)
    at java.lang.Class.getMethod(Class.java:1653)
    at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: 
org.eclipse.jetty.http.ssl.SslContextFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

In new package of jetty the org/eclipse/jetty/http/ssl/SslContextFactory does 
not exist but is present org.eclipse.jetty.util.ssl.SslContextFactory

Original issue reported on code.google.com by alessand...@gmail.com on 11 Oct 2013 at 7:49

GoogleCodeExporter commented 8 years ago
The "http" version of the SslContextFactory was deprecated in Jetty 7/8

As part of commit on Oct 26, 2011 - 
https://github.com/eclipse/jetty.project/commit/61664d3c0f8ec68cdf1da7d272b044e5
e99317e3

First jetty releases with it deprecated: 
  jetty-7.6.0.RC0
  jetty-8.1.0.RC0

It was replaced with the "util" version at 
org.eclipse.jetty.util.ssl.SslContextFactory

Starting in Jetty 9.0.0, the old "http" version was completely removed.

Original comment by joakim.erdfelt on 9 Dec 2013 at 6:11