jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Can't get Jackrabbit to work with Lucene 2.0.0
Date Tue, 06 Jun 2006 07:19:36 GMT
lucene 2.0 is not backward compatible with code that was written against 
the 1.4.x releases. jackrabbit still depends on lucene 1.4.3. there 
exists an open jira issue that suggests to migrate the query handler to 
lucene 1.9 (and I guess now migrate to 2.0): 
http://issues.apache.org/jira/browse/JCR-352

regards
  marcel

Chan Chin Wei wrote:
> Hi,
>  
> I understand that Lucene is required to run the Jackrabbit in my web
> applicaiton.  However, the version of the Lucene used in Jackrabbit is
> 1.4.3, and the Lucene version that my web application is using Lucene
> 2.0.0.  Therefore, instead of using Lucene 1.4.3 jar, Lucene 2.0.0 jar
> is used instead.  But, I get errors when I tried to startup my tomcat.  
>  
> Does that means Jackrabbit is not workable with Lucene 2.0.0?
>  
> Please advise.  Thanks.
>  
>  
> Error I got from tomcat:
> Error creating bean with name 'docRepository' defined in ServletContext
> resource [/WEB-INF/applicationContext-service-core-docman.xml]:
> Initialization of bean failed; nested exception is
> java.lang.AbstractMethodError:
> org.apache.lucene.store.Directory.openInput(Ljava/lang/String;)Lorg/apac
> he/lucene/store/IndexInput; 
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'docRepository' defined in ServletContext resource
> [/WEB-INF/applicationContext-service-core-docman.xml]: Initialization of
> bean failed; nested exception is java.lang.AbstractMethodError:
> org.apache.lucene.store.Directory.openInput(Ljava/lang/String;)Lorg/apac
> he/lucene/store/IndexInput;
> java.lang.AbstractMethodError:
> org.apache.lucene.store.Directory.openInput(Ljava/lang/String;)Lorg/apac
> he/lucene/store/IndexInput;
>         at
> org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:45)
>         at
> org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:146)
>         at org.apache.lucene.store.Lock$With.run(Lock.java:99)
>         at
> org.apache.lucene.index.IndexReader.open(IndexReader.java:141)
>         at
> org.apache.lucene.index.IndexReader.open(IndexReader.java:136)
>         at
> org.apache.jackrabbit.core.query.lucene.AbstractIndex.getIndexReader(Abs
> tractIndex.java:160)
>         at
> org.apache.jackrabbit.core.query.lucene.PersistentIndex.getNumDocuments(
> PersistentIndex.java:218)
>         at
> org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.jav
> a:252)
>         at
> org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.j
> ava:218)
>         at
> org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQuery
> Handler.java:43)
>         at
> org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchMa
> nager.java:529)
>         at
> org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:273)
>         at
> org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(Reposit
> oryImpl.java:560)
>         at
> org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java
> :84)
>         at
> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager
> (RepositoryImpl.java:1434)
>         at
> org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.j
> ava:540)
>         at
> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:245
> )
>         at
> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:484
> )
>         at
> org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableReposito
> ry.java:136)
>         at
> org.apache.jackrabbit.core.jndi.BindableRepository.create(BindableReposi
> tory.java:122)
>         at
> org.apache.jackrabbit.core.jndi.BindableRepositoryFactory.createInstance
> (BindableRepositoryFactory.java:58)
>         at
> org.apache.jackrabbit.core.jndi.BindableRepositoryFactory.getObjectInsta
> nce(BindableRepositoryFactory.java:80)
>         at
> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact
> ory.java:139)
>         at
> javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
>         at
> org.apache.naming.NamingContext.lookup(NamingContext.java:792)
>         at
> org.apache.naming.NamingContext.lookup(NamingContext.java:139)
>         at
> org.apache.naming.NamingContext.lookup(NamingContext.java:780)
>         at
> org.apache.naming.NamingContext.lookup(NamingContext.java:139)
>         at
> org.apache.naming.NamingContext.lookup(NamingContext.java:780)
>         at
> org.apache.naming.NamingContext.lookup(NamingContext.java:139)
>         at
> org.apache.naming.NamingContext.lookup(NamingContext.java:780)
>         at
> org.apache.naming.NamingContext.lookup(NamingContext.java:152)
>         at
> org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
>         at javax.naming.InitialContext.lookup(InitialContext.java:351)
>         at
> org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:12
> 3)
>         at
> org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
>         at
> org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
>         at
> org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
>         at
> org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.ja
> va:86)
>         at
> org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java
> :104)
>         at
> org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiOb
> jectFactoryBean.java:125)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.createBean(AbstractAutowireCapableBeanFactory.java:396)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
> stractBeanFactory.java:233)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
> stractBeanFactory.java:145)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
> solveReference(BeanDefinitionValueResolver.java:186)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
> solveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.resolveConstructorArguments(AbstractAutowireCapableBeanFactory.java
> :747)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:644)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.createBean(AbstractAutowireCapableBeanFactory.java:358)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
> stractBeanFactory.java:233)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
> stractBeanFactory.java:145)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.get
> BeansOfType(DefaultListableBeanFactory.java:211)
>         at
> org.springframework.context.support.AbstractApplicationContext.getBeansO
> fType(AbstractApplicationContext.java:596)
>         at
> org.springframework.context.support.AbstractApplicationContext.registerL
> isteners(AbstractApplicationContext.java:478)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(A
> bstractApplicationContext.java:310)
>         at
> org.springframework.web.context.support.AbstractRefreshableWebApplicatio
> nContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
>         at
> org.springframework.web.context.ContextLoader.createWebApplicationContex
> t(ContextLoader.java:246)
>         at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(
> ContextLoader.java:184)
>         at
> org.springframework.web.context.ContextLoaderListener.contextInitialized
> (ContextLoaderListener.java:49)
>         at
> mcap.core.base.webapp.listener.StartupListener.contextInitialized(Unknow
> n Source)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
> ava:3729)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4183
> )
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
> va:759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
> 608)
>         at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> :535)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
> 0)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
> pport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>  
>  
> regards.
> chin wei
>  
>  
> 
> [This e-mail is confidential and may be priviledged. If you are not the
> intended recipient, please kindly notify us immediately and delete the message
> from your system; please do not copy or use it for any purpose, nor disclose
> its contents to any other person. Thank you.]
> ---ST Electronics Group---
> 
> 


Mime
View raw message