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:ogil...@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 <ogil...@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. >