I try to run an Ignite ndoe inside Intellij Idea for debug reasons.
I ran the mvn clean install -Pall-java,all-scala,licenses -DskipTests command from devnotes and it completed without error. But when I try to run Ignite node from this class CommandLineStartup and selected default xml config. But I got following error Choose configuration file ('c' to cancel) [0]: 0 Using configuration: config/default-config.xml 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:990) at org.apache.ignite.Ignition.start(Ignition.java:355) at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301) 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:742) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:945) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:854) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:724) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:693) at org.apache.ignite.Ignition.start(Ignition.java:352) ... 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. Any advice? -- Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/ |
Hi,
Most likely you are trying to start an Ignite node using XML config in the scope of ignite-core module. This fails because ignite-core is a standalone module and does not have a dependency on ignite-spring. You can either create an IgniteConfiguration instance programmatically instead of XML or run your test inside the ignite-spring test sources. --AG вт, 22 мая 2018 г. в 11:42, Ray <[hidden email]>: > I try to run an Ignite ndoe inside Intellij Idea for debug reasons. > I ran the mvn clean install -Pall-java,all-scala,licenses -DskipTests > command from devnotes and it completed without error. > But when I try to run Ignite node from this class CommandLineStartup and > selected default xml config. > But I got following error > > Choose configuration file ('c' to cancel) [0]: 0 > > Using configuration: config/default-config.xml > > 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:990) > at org.apache.ignite.Ignition.start(Ignition.java:355) > at > > org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301) > 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:742) > at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:945) > at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:854) > at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:724) > at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:693) > at org.apache.ignite.Ignition.start(Ignition.java:352) > ... 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. > > Any advice? > > > > -- > Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/ > |
Free forum by Nabble | Edit this page |