[jboss-user] [Beginner's Corner] - SSL Setup problem

Herfan Yusano do-not-reply at jboss.com
Wed Mar 27 21:56:25 EDT 2013


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

> java -Djavax.net.ssl.trustStore=client.truststore -Djavax.net.ssl.trustStorePassword=123456 acme/ReadHttpsURL2 https://localhost:8443/ https://localhost:8443
I get this following error

> Exception 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.

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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130327/a376e4e3/attachment.html 


More information about the jboss-user mailing list