jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sakke Wiik" <sakke.w...@gmail.com>
Subject What version of Lucene does 1.2.2 use?
Date Fri, 23 Feb 2007 12:44:28 GMT
Starting with the first steps
(http://jackrabbit.apache.org/doc/firststeps.html), I downloaded the
required jars and executed the first example. I got an exception from
Lucene. I upgraded to lucene-core-2.1.0.jar, but I got a different
error. Below are the dumps for both cases.

What version of Lucene should I get? The turorial says lucene-1.4.3.jar.

I'm using Jackrabbit 1.2.2.



Cheers,
Sakke Wiik


Using lucene-1.4.3.jar:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/lucene/document/Field$Store
	at org.apache.jackrabbit.core.query.lucene.NodeIndexer.createDoc(NodeIndexer.java:130)
	at org.apache.jackrabbit.core.query.lucene.NodeIndexer.createDocument(NodeIndexer.java:115)
	at org.apache.jackrabbit.core.query.lucene.SearchIndex.createDocument(SearchIndex.java:475)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.createDocument(MultiIndex.java:690)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.createDocument(MultiIndex.java:781)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.access$300(MultiIndex.java:73)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex$AddNode.execute(MultiIndex.java:1347)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.executeAndLog(MultiIndex.java:809)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:888)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:279)
	at org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:245)
	at org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:44)
	at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:513)
	at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:250)
	at org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:642)
	at org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java:103)
	at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1638)
	at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:622)
	at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:375)
	at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:293)
	at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:573)
	at org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
	at org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
	at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
	at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:388)
	at com.basware.firsthop.FirstHop.main(FirstHop.java:22)
	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:585)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
	
	
	
Using lucene-core-2.1.0.jar:	
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
	at org.apache.jackrabbit.core.query.lucene.NodeIndexer.createDoc(NodeIndexer.java:130)
	at org.apache.jackrabbit.core.query.lucene.NodeIndexer.createDocument(NodeIndexer.java:115)
	at org.apache.jackrabbit.core.query.lucene.SearchIndex.createDocument(SearchIndex.java:475)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.createDocument(MultiIndex.java:690)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.createDocument(MultiIndex.java:781)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.access$300(MultiIndex.java:73)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex$AddNode.execute(MultiIndex.java:1347)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.executeAndLog(MultiIndex.java:809)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:888)
	at org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:279)
	at org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:245)
	at org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:44)
	at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:513)
	at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:250)
	at org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:642)
	at org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java:103)
	at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1638)
	at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:622)
	at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:375)
	at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:293)
	at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:573)
	at org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
	at org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
	at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
	at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:388)
	at com.basware.firsthop.FirstHop.main(FirstHop.java:22)
	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:585)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

Mime
View raw message