I got an answer from a StackOverflow guy, so I share it here for others :)
-----------------------------
You're missing a dependency. Neo4j requires a schema index provider which
is located in neo4j-lucene-index. Since it's an exchangeable component (you
can write your own index provider) it's bundled in a separate artifact.
Amend your dependencies in pom.xml with:
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-lucene-index</artifactId>
<version>2.1.6</version></dependency>
If you only want to have one single dependency for all neo4j stuff in your
pom.xml use:
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-community</artifactId>
<version>2.1.6</version></dependency>
Le mercredi 10 décembre 2014 17:06:17 UTC+1, Abderraouf Mehdi Bouhali a
écrit :
>
> I take the same post as is in StackOverflow
> <http://stackoverflow.com/questions/27403948/neo4j-2-1-6-hello-world-in-netbeans-maven-project>
>
>
> I'm new to Neo4j and my configuration is :
>
> * OS : Windows 8
> * Neo4j community 2.1.6 (latest stable)
> * IDE : NetBeans 8.0.2 (latest)
> * java -version
>
> java version "1.8.0_25"Java(TM) SE Runtime Environment (build
> 1.8.0_25-b18)Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
>
>
> 1. I created a maven Java project and put the Hello world example
> provided by Neo4j guys
> <http://neo4j.com/docs/2.1.6/tutorials-java-embedded-hello-world.html> for
> the appropriate version.
> 2. I added all the main dependencies (neo4j-kernel 2.1.6) and maven
> transitively added the remaining dependencies.
> 3. Build process is 100% OK
>
> I still get a the following exception at runtime :
>
> Exception in thread "main" java.lang.RuntimeException: Error starting
> org.neo4j.kernel.EmbeddedGraphDatabase,
> C:\Users\Mehdy\Documents\NetBeansProjects\neo4j-example\target\neo4j-hello-db
>
> I looked in the stack trace and I found $EmbeddedGraphDatabase constructor
> is deprecated.
>
> Here's the whole console output :
>
> ------------------------------------------------------------------------Building
> neo4j-example
> 1.0-SNAPSHOT------------------------------------------------------------------------
> --- exec-maven-plugin:1.2.1:exec (default-cli) @ neo4j-example ---Exception
> in thread "main" java.lang.RuntimeException: Error starting
> org.neo4j.kernel.EmbeddedGraphDatabase,
> C:\Users\Mehdy\Documents\NetBeansProjects\neo4j-example\target\neo4j-hello-db
> at
> org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:366)
> at
> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59)
> at
> org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:91)
> at
> org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:181)
> at
> org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:71)
> at com.lirmm.neo4j.example.Hello.createDb(Hello.java:51)
> at com.lirmm.neo4j.example.Hello.main(Hello.java:41)Caused by:
> org.neo4j.kernel.lifecycle.LifecycleException: Component
> 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@53f65459' was
> successfully initialized, but failed to start. Please see attached cause
> exception.
> at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:513)
> at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115)
> at
> org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:343)
> ... 6 moreCaused by: org.neo4j.kernel.lifecycle.LifecycleException:
> Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@4d95d2a2' was
> successfully initialized, but failed to start. Please see attached cause
> exception.
> at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:513)
> at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115)
> at
> org.neo4j.kernel.impl.transaction.XaDataSourceManager.start(XaDataSourceManager.java:164)
> at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507)
> ... 8 moreCaused by: java.lang.IllegalArgumentException: No schema index
> provider org.neo4j.kernel.api.index.SchemaIndexProvider found. Kernel
> extensions available on classpath:
> Class path entries:
> C:\Users\Mehdy\Documents\NetBeansProjects\neo4j-example\target\classes
> C:\Users\Mehdy\.m2\repository\org\neo4j\neo4j-kernel\2.1.6\neo4j-kernel-
>
> ...
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.