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

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
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 Lucene jars in a build.xml and we use

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

2013-04-09 Thread Manivannan Selvadurai
...@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 what u mean by directly inside ant or just for compiling, but this is the process we do

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

2013-04-09 Thread Uwe Schindler
...@thetaphi.de -Original Message- 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

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

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 object that I

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

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
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 apa...@gagravarr.org wrote: On Wed, 9 Jan 2013, Igal Sapir wrote: The syntax

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-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 i...@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

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

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 https://issues.apache.org/jira/browse/LUCENE-4391 - see also linked issue https://issues.apache.org/jira/browse/LUCENE-4440. Both of these are marked as fixed in Lucene