I am trying to learn Apache Ignite but facing an error in the process.
- I downloaded
apache-ignite-fabric-2.4.0
- Unzipped it to
apache-ignite-fabric-2.4.0-bin
- Set the environment variable
IGNITE_HOME
C:\devTools\apache-ignite-fabric-2.4.0-bin>echo %IGNITE_HOME% C:\devTools\apache-ignite-fabric-2.4.0-bin
I then tried executing C:\devTools\apache-ignite-fabric-2.4.0-bin>sh bin/ignite.sh examples/config/example-ignite.xml
and then C:\devTools\apache-ignite-fabric-2.4.0-bin>sh bin/ignite.sh
, but got the same error.
C:\devTools\apache-ignite-fabric-2.4.0-bin>sh bin/ignite.sh
class org.apache.ignite.IgniteException: Failed to create Ignite component (consider adding ignite-spring module to classpath) [component=SPRING, cls=
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl]
at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:980)
at org.apache.ignite.Ignition.start(Ignition.java:350)
at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to create Ignite component (consider adding ignite-spring module to classpath) [comp
onent=SPRING, cls=org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl]
at org.apache.ignite.internal.IgniteComponentType.componentException(IgniteComponentType.java:320)
at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:296)
at org.apache.ignite.internal.IgniteComponentType.create(IgniteComponentType.java:207)
at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:735)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:938)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:847)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:717)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:686)
at org.apache.ignite.Ignition.start(Ignition.java:347)
... 1 more
Caused by: java.lang.ClassNotFoundException: org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:259)
at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:282)
... 8 more
Failed to start grid: Failed to create Ignite component (consider adding ignite-spring module to classpath) [component=SPRING, cls=org.apache.ignite.i
nternal.util.spring.IgniteSpringHelperImpl]
Note! You may use 'USER_LIBS' environment variable to specify your classpath.
I just followed the instructions from http://ggfabric.blogspot.com/2015/12/apache-ignite-hello-world-example.html and https://apacheignite.readme.io/docs/getting-started#launching-first-ignite-cluster
There is similar question on SO: ClassNotFoundException: org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl but it wasn't much helpful.