You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Sakke Wiik <sa...@gmail.com> on 2007/02/23 13:44:28 UTC

What version of Lucene does 1.2.2 use?

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)

Re: What version of Lucene does 1.2.2 use?

Posted by Rafał Kwiecień <ra...@consol.pl>.
Hi,

Dnia wtorek, 13 marca 2007 09:38, Jukka Zitting napisał:
> Hi,
>
> On 3/13/07, Rafał Kwiecień <ra...@consol.pl> wrote:
> > I think it may be a bit more complicated than recompiling. Which version
> > of lucene will be needed for version 1.3 ? Also 2.0 ? Or maybe you plan
> > upgrade to lucene 2.1 ?
>
> There are no current plans to upgrade to Lucene 2.1. Please file an
> improvement issue if you think we should do that.

No. I only wanted to know which version you use. Thanks. 

-- 
Rafał Kwiecień
ConSol* Consulting & Solutions Software Poland Sp. z o.o.
ul. Piastowska 44C, 30-070 Kraków 
http://www.consol.pl/

Re: What version of Lucene does 1.2.2 use?

Posted by Marcel Reutegger <ma...@gmx.net>.
Jukka Zitting wrote:
> On 3/13/07, Rafał Kwiecień <ra...@consol.pl> wrote:
>> I think it may be a bit more complicated than recompiling. Which 
>> version of
>> lucene will be needed for version 1.3 ? Also 2.0 ? Or maybe you plan 
>> upgrade
>> to lucene 2.1 ?
> 
> There are no current plans to upgrade to Lucene 2.1. Please file an
> improvement issue if you think we should do that.

I think we should have a look at the new version because it introduces useful 
enhancements that we could use in jackrabbit.

See: http://issues.apache.org/jira/browse/JCR-788

regards
  marcel

Re: What version of Lucene does 1.2.2 use?

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On 3/13/07, Rafał Kwiecień <ra...@consol.pl> wrote:
> I think it may be a bit more complicated than recompiling. Which version of
> lucene will be needed for version 1.3 ? Also 2.0 ? Or maybe you plan upgrade
> to lucene 2.1 ?

There are no current plans to upgrade to Lucene 2.1. Please file an
improvement issue if you think we should do that.

BR,

Jukka Zitting

Re: What version of Lucene does 1.2.2 use?

Posted by Rafał Kwiecień <ra...@consol.pl>.
Hi

I think it may be a bit more complicated than recompiling. Which version of 
lucene will be needed for version 1.3 ? Also 2.0 ? Or maybe you plan upgrade 
to lucene 2.1 ?
 
Dnia piątek, 23 lutego 2007 14:11, Glaucio Scheibel napisał:
> Hi,
>
> Lucene 2.1 has change the add method signature in Document class. Now it
> receives a Fieldable interface as a parameter. I think jackrabbit only
> needs to be recompile with this version to works with it.
>
> http://lucene.apache.org/java/docs/api/org/apache/lucene/document/Document.
>html
>
> Glaucio
>
> Jukka Zitting wrote:
> > Hi,
> >
> > On 2/23/07, Sakke Wiik <sa...@gmail.com> wrote:
> >> 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.
> >
> > You should use Lucene 2.0.0 with Jackrabbit 1.2.2. I'll need to update
> > the first steps document, it still assumes Jackrabbit 1.0.
> >
> > BR,
> >
> > Jukka Zitting

-- 
Rafał Kwiecień
ConSol* Consulting & Solutions Software Poland Sp. z o.o.
ul. Piastowska 44C, 30-070 Kraków 
http://www.consol.pl/

Re: What version of Lucene does 1.2.2 use?

Posted by Glaucio Scheibel <gl...@datasul.com.br>.
Hi,

Lucene 2.1 has change the add method signature in Document class. Now it 
receives a Fieldable interface as a parameter. I think jackrabbit only 
needs to be recompile with this version to works with it.

http://lucene.apache.org/java/docs/api/org/apache/lucene/document/Document.html

Glaucio

Jukka Zitting wrote:
> Hi,
>
> On 2/23/07, Sakke Wiik <sa...@gmail.com> wrote:
>> 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.
>
> You should use Lucene 2.0.0 with Jackrabbit 1.2.2. I'll need to update
> the first steps document, it still assumes Jackrabbit 1.0.
>
> BR,
>
> Jukka Zitting
>

Re: What version of Lucene does 1.2.2 use?

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On 2/23/07, Sakke Wiik <sa...@gmail.com> wrote:
> 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.

You should use Lucene 2.0.0 with Jackrabbit 1.2.2. I'll need to update
the first steps document, it still assumes Jackrabbit 1.0.

BR,

Jukka Zitting