[kepler-dev] exception when launch Kepler with jars.
Jianwu Wang
jianwu at sdsc.edu
Wed Feb 25 11:16:17 PST 2009
Hi David and Aaron,
I tried to launch Kepler with jars of needed modules. I tried the
following steps and get some exceptions. Any ideas about it? Thanks.
1) ant jar at build-area: get all jars of needed modules.
2) copy all the jars and execute Kepler workflow without GUI: java
-cp
.;./jars/actors.jar;./jars/core.jar;./jars/loader.jar;./jars/util.jar;./jars/directors.jar;./jars/ptolemy.jar;./jars/common.jar
org.kepler.loader.Kepler -runwf -nogui -nocache 04-HelloWorld.xml. This
command works and execute the workflow without Kepler GUI.
3) start Kepler with GUI: I got an exception with NoClassDefFoundError:
D:\Kepler\repository\keplerjar>java -cp
.;./jars/actors.jar;./jars/core.jar;./jars/loader.jar;./jars/util.jar;./jars/directors.jar;./jars/ptolemy.jar;./jars/common.jar
org.kepler.loader.KeplerException in thread "main"
java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown
Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at org.kepler.loader.Kepler.main(Kepler.java:105)
Caused by: java.lang.ClassNotFoundException:
org.osgi.framework.BundleActivator
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 13 more
4) copy the jar and start Kepler with GUI again: I got an exception
with ExceptionInInitializerError:
D:\Kepler\repository\keplerjar>java -cp
.;./jars/actors.jar;./jars/core.jar;./jars/loader.jar;./jars/util.jar;./jars/directors.jar;./jars/ptolemy.jar;./jars/common.jar;./jars/org.eclipse.osgi_3.4.0.v20080605-1900.jar
org.kepler.loader.Kepler
Config.xml: null
Unable to start application.
java.lang.ExceptionInInitializerError
at
org.kepler.gui.KeplerApplication.main(KeplerApplication.java:118)
at org.kepler.loader.Kepler.main(Kepler.java:105)
Caused by: java.lang.RuntimeException: Unspecified error
creating config object
from "null"
at org.ecoinformatics.util.Config.<init>(Config.java:151)
at org.ecoinformatics.util.Config.<clinit>(Config.java:88)
... 2 more
Caused by: java.lang.NullPointerException
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at org.ecoinformatics.util.Config.<init>(Config.java:136)
... 3 more
It seems that the Config.xml is not included in the jars. So we
need put the config file and org.eclipse.osgi_3.4.0.v20080605-1900.jar
into common.jar when we type 'ant jar' in build-area dir?
--
Best wishes
Sincerely yours
Jianwu Wang
jianwu at sdsc.edu
http://users.sdsc.edu/~jianwu/
Scientific Workflow Automation Technologies (SWAT) Laboratory
San Diego Supercomputer Center
University of California, San Diego
San Diego, CA, U.S.A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercury.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20090225/338e0e63/attachment-0001.html>
More information about the Kepler-dev
mailing list