I wasn't use the H2 database,but it's always have a error as follows:

classic Classic list List threaded Threaded
6 messages Options
anyway anyway
Reply | Threaded
Open this post in threaded view
|

I wasn't use the H2 database,but it's always have a error as follows:

This post has NOT been accepted by the mailing list yet.
[10:08:20,215][SEVERE][main][IgniteKernal] Got exception while starting (will rollback startup routine).
java.lang.NoClassDefFoundError: org/h2/server/Service
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.apache.ignite.internal.IgniteComponentType.inClassPath(IgniteComponentType.java:146)
        at org.apache.ignite.internal.processors.query.GridQueryProcessor.<init>(GridQueryProcessor.java:159)
        at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:888)
        at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1688)
        at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1547)
        at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1003)
        at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:929)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:815)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:714)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:584)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:554)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        at com.demo.util.Test0.main(Test0.java:17)
Caused by: java.lang.ClassNotFoundException: org.h2.server.Service
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 15 more
[10:08:20] Ignite node stopped OK [uptime=00:00:12:367]
Exception in thread "main" java.lang.NoClassDefFoundError: org/h2/server/Service
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.apache.ignite.internal.IgniteComponentType.inClassPath(IgniteComponentType.java:146)
        at org.apache.ignite.internal.processors.query.GridQueryProcessor.<init>(GridQueryProcessor.java:159)
        at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:888)
        at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1688)
        at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1547)
        at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1003)
        at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:929)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:815)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:714)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:584)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:554)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        at com.demo.util.Test0.main(Test0.java:17)
Caused by: java.lang.ClassNotFoundException: org.h2.server.Service
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 15 more
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: I wasn't use the H2 database,but it's always have a error as follows:

Hi,

Can you please properly subscribe to the mailing list so that the community receives email notifications? Here is the instruction: http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1

anyway wrote
Caused by: java.lang.ClassNotFoundException: org.h2.server.Service
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 15 more
Looks like you have a dependency on ignite-indexing.jar (one of Ignite modules), but do not have JARs it depends on (h2 database and others). Can you double check your classpath? Are you using Maven?

-Val
anyway anyway
Reply | Threaded
Open this post in threaded view
|

Re: I wasn't use the H2 database,but it's always have a error as follows:

This post has NOT been accepted by the mailing list yet.
Thanks for you help, i have solved this problem!
anyway anyway
Reply | Threaded
Open this post in threaded view
|

Re: I wasn't use the H2 database,but it's always have a error as follows:

This post has NOT been accepted by the mailing list yet.
In reply to this post by vkulichenko
I haven't use the maven, i want to use mysql database instead of h2 database,how  to  implement?
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: I wasn't use the H2 database,but it's always have a error as follows:

H2 is used internally to run SQL queries against the data that is stored in cache. What do you intend to use MySQL for? If you want to implement persistence, please refer to this page: https://apacheignite.readme.io/docs/persistent-store

-Val
anyway anyway
Reply | Threaded
Open this post in threaded view
|

Re: I wasn't use the H2 database,but it's always have a error as follows:

thank you for help me,it has solved.