嗨,大家好,我是Apache Ignite的新手。
我尝试在Windows 10专业版上运行它。
我已经在ignite目录中运行example-cache示例,如下所示:
D:\work\tools\apache ignite 1.9.0\apache-ignite-fabric-1.9.0-bin>bin\ignite.bat examples\config\example-cache.xml
我之前已将IGNITE_HOME环境变量设置为
D:\work\tools\apache ignite 1.9.0\apache-ignite-fabric-1.9.0-bin
但是我有这个异常堆栈:
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:946)
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) [component=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:637)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
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.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 java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
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.internal.util.spring.IgniteSpringHelperImpl]
Note! You may use 'USER_LIBS' environment variable to specify your classpath.
我尝试将IGNITE_HOME设置为
D:\work\tools\apache ignite 1.9.0\apache-ignite-fabric-1.9.0-bin\libs
,其中包含jar文件ignite-spring-1.9.0.jar
,该文件包含类org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl
最佳答案
尝试将IGNITE_HOME设置为“ D:\ work \ tools \ apache ignite 1.9.0 \ apache-ignite-fabric-1.9.0-bin”。
或建议使用USER_LIBS到“ D:\ work \ tools \ apache ignite 1.9.0 \ apache-ignite-fabric-1.9.0-bin \ libs”。
关于spring - ClassNotFoundException:org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/43207186/