I’m trying run a graph on Clover Server 3.0.1 that makes use of the runGraph component. This works fine from the Eclipse Designer on my local machine, but when running the graph on the server through an Eclipse Server project, or from the server’s website, I get this error:
java.lang.NoClassDefFoundError: org/jetel/main/runGraph
Caused by: java.lang.ClassNotFoundException: org.jetel.main.runGraph
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Could not find the main class: org.jetel.main.runGraph. Program will exit.
Exception in thread “main”
I tried to add a %CLASSPATH% environment variable on the server where the Clover ETL Gui is installed, but then the error changes to this:
java.lang.NoClassDefFoundError: C:\Program Files\Apache Software Foundation\Tomcat 6/0\bin\bootstrap/jar
Caused by: java.lang.ClassNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Could not find the main class: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar. Program will exit.
Exception in thread “main”
The value of my %CLASSPATH% variable is:
C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/clover/WEB-INF/lib/cloveretl.engine.jar;C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/clover/WEB-INF/lib/commons-logging-1.1.1.jar;C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/clover/WEB-INF/lib/log4j-1.2.15.jar
How do I make this work?