Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Setting up SSL with Jetty 7.x

Hello,

I been following this tutorial to setup SSL:

http://wiki.eclipse.org/Jetty/Howto/Configure_SSL

I get all the way down to this line:

java -classpath
$JETTY_HOME/lib/jetty-util-6.1-SNAPSHOT.jar:$JETTY_HOME/lib/jetty-6.1-SNAP
SHOT.jar org.eclipse.jetty.security.PKCS12Import jetty.pkcs12 keystore


and I cannot get this line right.

I am getting this error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/jetty/sec
urity/PKCS12Import
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jetty.security.PKCS12Im
port
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: org.eclipse.jetty.security.PKCS12Import.
Program
 will exit.

I am guessing it is an issue with the two jar files being different in the
7.x release.

I replaced: jetty-util-6.1-SNAPSHOT.jar  with
jetty-util-7.6.5.v20120716.jar but I am not sure which file to replace:
jetty-6.1-SNAPSHOT.jar  with.

Thanks for your help.

Randy


Back to the top