Hello everybody

I'm currently trying to make my spring based osgi application run with neo4j 
1.3 . However, when I call 'org.neo4j.kernel.IndexManagerImpl.forNodes' I got 
the following error (see [1] for a complete stack trace):

> Invocation of init method failed; nested exception is 
> java.lang.IllegalArgumentException: No index provider 'lucene' found

My setup is as follows:

loaded and running bundles:
- org.apache.servicemix.bundles.lucene
- org.neo4j.kernel
- org.apache.servicemix.bundles.lucene


Do I have to load any lucene classes into the classpath on startup?

Thanks a lot and let me know if I have to provide more information
Marco Gerber

[1]
Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'myRepository': Invocation of init method failed; 
nested exception is java.lang.IllegalArgumentException: No index provider 
'lucene' found
        at 
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:844)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:786)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
        at 
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
        ... 20 common frames omitted
Caused by: java.lang.IllegalArgumentException: No index provider 'lucene' found
        at 
org.neo4j.kernel.IndexManagerImpl.getIndexProvider(IndexManagerImpl.java:71)
        at 
org.neo4j.kernel.IndexManagerImpl.findIndexConfig(IndexManagerImpl.java:104)
        at 
org.neo4j.kernel.IndexManagerImpl.getOrCreateIndexConfig(IndexManagerImpl.java:173)
        at org.neo4j.kernel.IndexManagerImpl.forNodes(IndexManagerImpl.java:244)
        at 
net.junisphere.eranger.helloNeo4j.config.internal.repository.BaseRepository.<init>(BaseRepository.java:31)
        at 
net.junisphere.eranger.helloNeo4j.config.internal.repository.ServiceRepository.init(ServiceRepository.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
        at 
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
        at 
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
        ... 33 common frames omitted
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to