Re: Cannot instantiate SPI class: org.apache.lucene.codecs.lucene42.Lucene42Codec

2013-04-10 Thread Manivannan Selvadurai
codec is only in lucene-facet.jar, but this JAR file is not in > > > your classpath. So you seem to have some classpath problem. > > > > > > Uwe > > > > > > - > > > Uwe Schindler > > > H.-H.-Meier-Allee 63, D-28213 Bremen > > &

RE: Cannot instantiate SPI class: org.apache.lucene.codecs.lucene42.Lucene42Codec

2013-04-09 Thread Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen > > http://www.thetaphi.de > > eMail: u...@thetaphi.de > > > > > > > -Original Message- > > > From: Manivannan Selvadurai [mailto:manivan...@unmetric.com] > > > Sent: Tuesday, April 09, 2013 1:15 PM &

Re: Cannot instantiate SPI class: org.apache.lucene.codecs.lucene42.Lucene42Codec

2013-04-09 Thread Manivannan Selvadurai
t; - > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > > -Original Message- > > From: Manivannan Selvadurai [mailto:manivan...@unmetric.com] > > Sent: Tuesday, April 09, 20

RE: Cannot instantiate SPI class: org.apache.lucene.codecs.lucene42.Lucene42Codec

2013-04-09 Thread Uwe Schindler
> > > > - > > Uwe Schindler > > H.-H.-Meier-Allee 63, D-28213 Bremen > > http://www.thetaphi.de > > eMail: u...@thetaphi.de > > > > > > > -Original Message- > > > From: Manivannan Selvadurai [mailto:manivan.

Re: Cannot instantiate SPI class: org.apache.lucene.codecs.lucene42.Lucene42Codec

2013-04-09 Thread Manivannan Selvadurai
From: Manivannan Selvadurai [mailto:manivan...@unmetric.com] > > Sent: Tuesday, April 09, 2013 12:33 PM > > To: java-user@lucene.apache.org > > Subject: Re: Cannot instantiate SPI class: > > org.apache.lucene.codecs.lucene42.Lucene42Codec > > > > I dint understand

RE: Cannot instantiate SPI class: org.apache.lucene.codecs.lucene42.Lucene42Codec

2013-04-09 Thread Uwe Schindler
April 09, 2013 12:33 PM > To: java-user@lucene.apache.org > Subject: Re: Cannot instantiate SPI class: > org.apache.lucene.codecs.lucene42.Lucene42Codec > > I dint understand what u mean by directly inside ant or just for compiling, > but > this is the process we do Im using the

Re: Cannot instantiate SPI class: org.apache.lucene.codecs.lucene42.Lucene42Codec

2013-04-09 Thread Manivannan Selvadurai
I dint understand what u mean by directly inside ant or just for compiling, but this is the process we do Im using the Lucene jars in a build.xml and we use ant to build the jar and i invoke the program on that resulting jar. So will using lucene 4.2.1 fix the issue for me? On Tue, Apr 9, 2013

RE: Cannot instantiate SPI class: org.apache.lucene.codecs.lucene42.Lucene42Codec

2013-04-09 Thread Uwe Schindler
This may be fixed in 4.2.1, but this depends on your setup. Are you using Lucene directly inside ANT or is it just for compiling code? Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Manivannan Sel

Re: Cannot instantiate SPI class

2013-01-09 Thread Igal @ getRailo.org
hi everybody, I figured it out. the problem was that I was using a "custom" jar to deploy this along with other libs that I use in my application. so at the end of my build.xml I create a jar file with all the required libs. the problem was that I was adding lucene-core.jar with a filter of

RE: Cannot instantiate SPI class

2013-01-09 Thread Igal Sapir
Thanks, I'll do that. p.s. -- that was http://getrailo.org -- 'auto-correct' messed it up ;-) -- typos, misspels, and other weird words brought to you courtesy of my mobile device. On Jan 9, 2013 2:08 AM, "Nick Burch" wrote: > On Wed, 9 Jan 2013, Igal Sapir wrote: > >> The syntax is CFML / CFSc

RE: Cannot instantiate SPI class

2013-01-09 Thread Nick Burch
On Wed, 9 Jan 2013, Igal Sapir wrote: The syntax is CFML / CFScript (ColdFusion Script). Railo is an open source, high performance, ColdFusion server. http://getrailo.arg/ I will re-download the Lucene jars and try again. I'll let you know what I find. It may be worth double-checking that

RE: Cannot instantiate SPI class

2013-01-09 Thread Igal Sapir
The syntax is CFML / CFScript (ColdFusion Script). Railo is an open source, high performance, ColdFusion server. http://getrailo.arg/ I will re-download the Lucene jars and try again. I'll let you know what I find. Thanks, Igal -- typos, misspels, and other weird words brought to you courtes

RE: Cannot instantiate SPI class

2013-01-09 Thread Uwe Schindler
> indexWriterConfig = createObject( "java", > "org.apache.lucene.index.IndexWriterConfig" ).init( Lucene.Version, > this.indexAnalyzer ); What syntax is that, I have never seen that before! > where Lucene.Version is an object of Lucene.VERSION_40 and > this.indexAnalyzer is an Analyzer objec

Re: Cannot instantiate SPI class

2013-01-09 Thread Igal @ getRailo.org
hi Uwe, thank you for answering. I believe that this is the complete stack trace, no (pasted again below)? I'm actually not trying to do anything fancy with codecs etc. I'm trying to do something very basic: create an object of type indexWriterConfig. the CFML (Railo) code is as follows:

RE: Cannot instantiate SPI class

2013-01-08 Thread Uwe Schindler
Hi, can you give the *full* stack trace including nested Exceptions (root causes)? There is also the problem, that the line numbers are not matching the ones from Lucene 4.0 - so maybe you are using different JAR versions in your webapp? This could be caused e.g. by an older lucene 4.0 JAR file

Re: Cannot instantiate SPI class

2013-01-08 Thread Steve Rowe
Hmm, I don't know. Are you actually using AppendingCodec? For anybody else looking at this: the same exception is listed on - see also linked issue . Both of these are marked as fixed in Luc

Re: Cannot instantiate SPI class

2013-01-08 Thread Igal @ getRailo.org
nope. that didn't work either... On 1/8/2013 10:02 PM, Igal @ getRailo.org wrote: hi Steve, thanks for your reply. at first I also thought that, so I added lucene-codecs-4.0.0.jar which caused another error, and prompted me to add commons-codec-1.7.jar as well. this error is after I adde

Re: Cannot instantiate SPI class

2013-01-08 Thread Igal @ getRailo.org
hi Steve, thanks for your reply. at first I also thought that, so I added lucene-codecs-4.0.0.jar which caused another error, and prompted me to add commons-codec-1.7.jar as well. this error is after I added those two jars, but now I'm thinking -- I added them to Tomcat's classpath (Railo i

Re: Cannot instantiate SPI class

2013-01-08 Thread Steve Rowe
Hi Igal, Sounds like you don't have lucene-codecs-4.0.0.jar in Railo's classpath. Steve On Jan 8, 2013, at 10:53 PM, Igal @ getRailo.org wrote: > I'm trying to access Lucene4 from Railo (an open-source application server) > > when I try to create an IndexWriterConfig I get the error: Cannot