Yes, when I run the app. using maven it works fine. Problem only when running junit. After fixing the classpath the prob. is gone. Cheers!
Sent from my iPhone On Oct 2, 2011, at 1:22 PM, Mattias Persson <[email protected]> wrote: > Definitely sounds like a classpath issue > > 2011/10/1 Rick Bullotta <[email protected]> > >> Classpath? >> >> -----Original Message----- >> From: [email protected] [mailto:[email protected]] >> On Behalf Of andrew ton >> Sent: Saturday, October 01, 2011 5:27 AM >> To: Neo4j_user >> Subject: [Neo4j] Problem with lucene indexing >> >> >> >> Hello, >> >> I have a problem with indexing when using the Neo4J embedded database. I'm >> using neo4j-1.5M01, neo4j-lucene-index-1.5M01. >> I have tried both lucene-core-3.1.0 and lucene-core-3.4.0. Can somebody >> show me what is wrong here? >> >> I create an instance of EmbeddedGraphDatabase as >> graphDb = new EmbeddedGraphDatabase("mystore"); >> >> and create index: >> nodeIndex = graphDb.index().forNodes("nodes", MapUtil.stringMap("provider", >> "lucene", "type", "fulltext")); >> >> When I run unit test I have a problem: >> >> com.ericsson.research.semantic.PersistentEmbeddedOntology -Exception caugth >> while instantiating. No index provider 'lucene' found >> java.lang.IllegalArgumentException: No index provider 'lucene' found >> >> and this is the messages.log in my store >> >> >> Sat Oct 01 01:41:20 PDT 2011: Failed to load index provider lucene >> LUCENE_31 >> java.lang.NoSuchFieldError: LUCENE_31 >> at >> org.neo4j.index.impl.lucene.LuceneDataSource.<clinit>(LuceneDataSource.java:88) >> at >> org.neo4j.index.impl.lucene.LuceneIndexImplementation.<init>(LuceneIndexImplementation.java:72) >> at >> org.neo4j.index.lucene.LuceneIndexProvider.load(LuceneIndexProvider.java:37) >> at >> org.neo4j.kernel.KernelData.loadIndexImplementations(KernelData.java:146) >> at >> org.neo4j.kernel.EmbeddedGraphDbImpl$2.initializeIndexProviders(EmbeddedGraphDbImpl.java:180) >> at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:159) >> at >> org.neo4j.kernel.EmbeddedGraphDbImpl.<init>(EmbeddedGraphDbImpl.java:190) >> at >> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:80) >> at >> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:64) >> >> Thank you, >> _______________________________________________ >> Neo4j mailing list >> [email protected] >> https://lists.neo4j.org/mailman/listinfo/user >> _______________________________________________ >> Neo4j mailing list >> [email protected] >> https://lists.neo4j.org/mailman/listinfo/user >> > > > > -- > Mattias Persson, [[email protected]] > Hacker, Neo Technology > www.neotechnology.com > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

