You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Matthias Zeilerbauer <ze...@gmx.at> on 2010/09/09 19:16:13 UTC
Openejb example
Hello support team,
I have tried the hello world example: http://openejb.apache.org/hello-world.html, but I failed at the last step, when I wanted to start the HelloClient. Following error message occured:
F:\Programmieren\myejbHelloWorld>java -cp C:\openejb\openejb-3.1.1-standalone\li
b\openejb-client-3.1.1.jar:C:\openejb\openejb-3.1.1-standalone\lib\javaee-api-5.
0-2.jar:. org.acme.HelloClient
Exception in thread "main" java.lang.NoClassDefFoundError: org/acme/HelloClient
Caused by: java.lang.ClassNotFoundException: org.acme.HelloClient
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.acme.HelloClient. Program will exit.
The log file is attached to this email.
--
GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 Euro/mtl.!*
http://portal.gmx.net/de/go/dsl
Re: Openejb example
Posted by David Blevins <da...@visi.com>.
On Sep 9, 2010, at 10:16 AM, Matthias Zeilerbauer wrote:
> Hello support team,
>
> I have tried the hello world example: http://openejb.apache.org/hello-world.html, but I failed at the last step, when I wanted to start the HelloClient. Following error message occured:
> F:\Programmieren\myejbHelloWorld>java -cp C:\openejb\openejb-3.1.1-standalone\li
> b\openejb-client-3.1.1.jar:C:\openejb\openejb-3.1.1-standalone\lib\javaee-api-5.
> 0-2.jar:. org.acme.HelloClient
> Exception in thread "main" java.lang.NoClassDefFoundError: org/acme/HelloClient
> Caused by: java.lang.ClassNotFoundException: org.acme.HelloClient
> 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.acme.HelloClient. Program will exit.
Hi Matthias
Looks like you used unix path separator ":" rather than the windows path separator ";"
-David
Re: Openejb example
Posted by Ravindranath Akila <ra...@gmail.com>.
Hi Matthias,
Did you give your package structure as org/acme for your HelloClient
class? Is it in a folder org and then acme?
On Thu, Sep 9, 2010 at 10:46 PM, Matthias Zeilerbauer <
zeiler.matthias@gmx.at> wrote:
> Hello support team,
>
> I have tried the hello world example:
> http://openejb.apache.org/hello-world.html, but I failed at the last step,
> when I wanted to start the HelloClient. Following error message occured:
> F:\Programmieren\myejbHelloWorld>java -cp
> C:\openejb\openejb-3.1.1-standalone\li
>
> b\openejb-client-3.1.1.jar:C:\openejb\openejb-3.1.1-standalone\lib\javaee-api-5.
> 0-2.jar:. org.acme.HelloClient
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/acme/HelloClient
> Caused by: java.lang.ClassNotFoundException: org.acme.HelloClient
> 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.acme.HelloClient. Program will exit.
>
> The log file is attached to this email.
> --
> GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 Euro/mtl.!*
> http://portal.gmx.net/de/go/dsl
>
--
Akila...