You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by giljae o <og...@gmail.com> on 2012/12/05 06:03:31 UTC

Regression.sh Error

When I ran regression.sh the error is seen below.
Where do I start from

[root@vim-app1-vm scripts]# sh regression.sh
Listening for transport dt_socket at address: 8789
Exception in thread "main" java.lang.NoClassDefFoundError:
com/cloud/test/regression/TestCaseEngine
Caused by: java.lang.ClassNotFoundException:
com.cloud.test.regression.TestCaseEngine
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
Could not find the main class: com.cloud.test.regression.TestCaseEngine.
Program will exit.

RE: Regression.sh Error

Posted by Pranav Saxena <pr...@citrix.com>.
NoClassDefFoundError in Java comes when JVM  is not able to find a particular class at runtime which was available during compile time . Hence the most viable reason could be that a particular class is not available in the Classpath . Or it could also be the case that this script is overriding Classpath environment variable. Please verify ,if you aren't using an old environment source code. 

Perhaps you could  try to run with explicitly -classpath option with the classpath you think will work and if its working then it's sure short sign that something  is overriding java classpath. Also try cleaning up your tomcat and re deploy . Not sure , but it works for me sometimes.

Regards,
Pranav


-----Original Message-----
From: giljae o [mailto:ogiljae@gmail.com] 
Sent: Monday, December 10, 2012 5:36 PM
To: cloudstack-dev@incubator.apache.org
Subject: Re: Regression.sh Error

Can someone PLEASE help me with this?


On Wed, Dec 5, 2012 at 2:03 PM, giljae o <og...@gmail.com> wrote:

> When I ran regression.sh the error is seen below.
> Where do I start from
>
> [root@vim-app1-vm scripts]# sh regression.sh Listening for transport 
> dt_socket at address: 8789 Exception in thread "main" 
> java.lang.NoClassDefFoundError:
> com/cloud/test/regression/TestCaseEngine
> Caused by: java.lang.ClassNotFoundException:
> com.cloud.test.regression.TestCaseEngine
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> at java.security.AccessController.doPrivileged(Native Method)  at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
> Could not find the main class: com.cloud.test.regression.TestCaseEngine.
> Program will exit.
>

Re: Regression.sh Error

Posted by giljae o <og...@gmail.com>.
Can someone PLEASE help me with this?


On Wed, Dec 5, 2012 at 2:03 PM, giljae o <og...@gmail.com> wrote:

> When I ran regression.sh the error is seen below.
> Where do I start from
>
> [root@vim-app1-vm scripts]# sh regression.sh
> Listening for transport dt_socket at address: 8789
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/cloud/test/regression/TestCaseEngine
> Caused by: java.lang.ClassNotFoundException:
> com.cloud.test.regression.TestCaseEngine
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
> Could not find the main class: com.cloud.test.regression.TestCaseEngine.
> Program will exit.
>