ClassNotFoundException:org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl [英] ClassNotFoundException: org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl

查看:54
本文介绍了ClassNotFoundException:org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在Windows 10 Professional上运行Apache Ignore.我已经在ignite目录中运行example-cache示例,如下所示:

I have tried to run Apache Ignore on Windows 10 Professional. I've run example-cache example in ignite directory as follows:

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环境变量设置为

I've previously set IGNITE_HOME environment variable to

D:\work\tools\apache ignite 1.9.0\apache-ignite-fabric-1.9.0-bin

但是我有这个异常堆栈:

But I have this exception stack:

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文件<包含类 org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl

I've tried to set IGNITE_HOME to D:\work\tools\apache ignite 1.9.0\apache-ignite-fabric-1.9.0-bin\libs which contains the jar file ignite-spring-1.9.0.jar containing the class org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl

推荐答案

尝试将IGNITE_HOME设置为"D:\ work \ tools \ apache ignite 1.9.0 \ apache-ignite-fabric-1.9.0-bin".

Try to set IGNITE_HOME to "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".

Or USER_LIBS to "D:\work\tools\apache ignite 1.9.0\apache-ignite-fabric-1.9.0-bin\libs" as it was suggested.

这篇关于ClassNotFoundException:org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆