Clover server and class path errors with runGraph component

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?

runGraph is a java class for executing graphs from command line. I can’t imagine, how you can use it in your graph. Can you show your graph?

I’m using the runGraph node to call another graph.

I’m uploading 2 testing graphs that demonstrate this issue. Execute the test_runGraph in a server project, and you should see the errors I’m getting.

Unfortunately RunGraph component doesn’t work in alternative jvm mode on CloverETL Server. On CloverETL Server graphs can be ran with the same jvm only.