Error while getting started

classic Classic list List threaded Threaded
3 messages Options
Afkham Azeez Afkham Azeez
Reply | Threaded
Open this post in threaded view
|

Error while getting started

I created a simple project and started it, and got the following error. I have attached the project. What could be wrong? Do I have to an an H2 Maven dependency as well?

[18:15:46] 
Jun 22, 2015 6:15:46 PM org.apache.ignite.logger.java.JavaLogger error
SEVERE: 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(Class.java:260)
at org.apache.ignite.internal.IgniteComponentType.inClassPath(IgniteComponentType.java:147)
at org.apache.ignite.internal.processors.query.GridQueryProcessor.<init>(GridQueryProcessor.java:87)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:768)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1599)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1467)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:993)
at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:920)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:833)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:737)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:691)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:531)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:501)
at org.apache.ignite.Ignition.start(Ignition.java:332)
at org.wso2.carbon.ignite.Main.main(Main.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: java.lang.ClassNotFoundException: org.h2.server.Service
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)
... 21 more

[18:15:46] Ignite node stopped OK [uptime=00:00:01:17]
Exception in thread "main" java.lang.NoClassDefFoundError: org/h2/server/Service
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:260)
at org.apache.ignite.internal.IgniteComponentType.inClassPath(IgniteComponentType.java:147)
at org.apache.ignite.internal.processors.query.GridQueryProcessor.<init>(GridQueryProcessor.java:87)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:768)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1599)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1467)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:993)
at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:920)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:833)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:737)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:691)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:531)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:501)
at org.apache.ignite.Ignition.start(Ignition.java:332)
at org.wso2.carbon.ignite.Main.main(Main.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: java.lang.ClassNotFoundException: org.h2.server.Service
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)
... 21 more

ignite.zip (29K) Download Attachment
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: Error while getting started

Afkham,

You need the H2 for indexing, but it should be added automatically because ignite-indexing module depends on it. Do you run the example in IDE? Most likely it incorrectly resolves transitive dependencies - this exception happens if ignite-indexing.jar is on classpath, but H2 is not. Can you check your classpath?

-Val
Afkham Azeez Afkham Azeez
Reply | Threaded
Open this post in threaded view
|

Re: Error while getting started

Removing indexing.jar solved the problem. Thanks.

On Tue, Jun 23, 2015 at 4:39 AM, vkulichenko <[hidden email]> wrote:
Afkham,

You need the H2 for indexing, but it should be added automatically because
ignite-indexing module depends on it. Do you run the example in IDE? Most
likely it incorrectly resolves transitive dependencies - this exception
happens if ignite-indexing.jar is on classpath, but H2 is not. Can you check
your classpath?

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Error-while-getting-started-tp559p563.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Afkham Azeez
Director of ArchitectureWSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/

email: [hidden email] cell: +94 77 3320919
blog: 
http://blog.afkham.org
twitter: 
http://twitter.com/afkham_azeez
linked-in: 
http://lk.linkedin.com/in/afkhamazeez

Lean . Enterprise . Middleware