hello there
I got classpath problems to run the examples in my cluster.
I'm trying to run
examples.(https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/persistentstore/PersistentStoreExampleNodeStartup.java)
in my cluster with following command:
"bin/ignite.shexamples/config/persistentstore/example-persistent-store.xml"
,then I got this exception:
[root@dserver1ignite]# bin/ignite.sh
examples/config/persistentstore/example-persistent-store.xml
class org.apache.ignite.IgniteException: Failed to instantiate Spring XML
application context (make sure all classes used in Spring configuration are
present at CLASSPATH)
[springUrl=file:/data/disk01/huzongxing/ignite/examples/config/persistentstore/example-persistent-store.xml]
at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:957)
at org.apache.ignite.Ignition.start(Ignition.java:350)
at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
........
Caused by: java.lang.ClassNotFoundException:
org.apache.ignite.examples.model.Organization
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
at
org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:284)
... 40 more
Failed to start grid: Failed to instantiate Spring XML application context
(make sure all classes used in Spring configuration are present at CLASSPATH)
[springUrl=file:/data/disk01/huzongxing/ignite/examples/config/persistentstore/example-persistent-store.xml]
Note! You may use 'USER_LIBS' environment variable to specify your classpath.
I tried to set various 'USER_LIBS' settings ,however none of them worked. Is
there a guide to to start my ignite node with this class correctly? Should I
compile Ignite via maven so that the dependencies included in the jar?
Any ideas are welcome~!