Friday, September 21, 2012
NoClassDefFoundError: org/apache/lucene/util/Version
I make a project with blueprint-neo4j-graph and pellet , but pellet use lucene-core 2.3.1 and blueprint-neo4j-graph use lucene-core 3.5.0
I have a new error in neo4j to load lucene version
Caused by: java.lang.NoClassDefFoundError: org/apache/lucene/util/Version
at org.neo4j.index.impl.lucene.LuceneDataSource.<clinit>(LuceneDataSource.java:110)
at org.neo4j.index.lucene.LuceneIndexProvider.load(LuceneIndexProvider.java:70)
at org.neo4j.kernel.InternalAbstractGraphDatabase$DefaultKernelExtensionLoader.loadIndexImplementations(InternalAbstractGraphDatabase.java:1191)
at org.neo4j.kernel.InternalAbstractGraphDatabase$DefaultKernelExtensionLoader.init(InternalAbstractGraphDatabase.java:1163)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:382)
... 39 more
Caused by: java.lang.ClassNotFoundException: org.apache.lucene.util.Version
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
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)
... 44 more
I have pellet dependence
<dependency>
<groupId>com.owldl</groupId>
<artifactId>pellet</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.tinkerpop.blueprints</groupId>
<artifactId>blueprints-neo4j-graph</artifactId>
<version>2.1.0</version>
</dependency>
With plugin m2e resolve depencence add this code in pom.xml project
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>3.5.0</version>
</dependency>
</dependencies>
</dependencyManagement>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment