Herfan Yusano
2013-03-28 01:56:25 UTC
Herfan Yusano [https://community.jboss.org/people/yusano] created the discussion
"SSL Setup problem"
To view the discussion, visit: https://community.jboss.org/message/805166#805166
--------------------------------------------------------------
Hi,
I'm configuring SSL on jboss 4.2.1 GA by following https://community.jboss.org/docs/DOC-11989#comment-11802 this ssl setup.
But when i tried to run this command
My question is, How can i find my main class?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/805166#805166]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
"SSL Setup problem"
To view the discussion, visit: https://community.jboss.org/message/805166#805166
--------------------------------------------------------------
Hi,
I'm configuring SSL on jboss 4.2.1 GA by following https://community.jboss.org/docs/DOC-11989#comment-11802 this ssl setup.
But when i tried to run this command
java -Djavax.net.ssl.trustStore=client.truststore -Djavax.net.ssl.trustStorePassword=123456 acme/ReadHttpsURL2 https://localhost:8443/ https://localhost:8443
I get this following errorException in thread "main" java.lang.NoClassDefFoundError: acme/ReadHttpsURL2
Caused by: java.lang.ClassNotFoundException: acme.ReadHttpsURL2
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: acme/ReadHttpsURL2. Program will exit.
Someone said that i need to replace that part in command with my main class.Caused by: java.lang.ClassNotFoundException: acme.ReadHttpsURL2
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: acme/ReadHttpsURL2. Program will exit.
My question is, How can i find my main class?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/805166#805166]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]