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 added those two jars, but now I'm thinking -- I
added them to Tomcat's classpath (Railo is a Servlet that's running
inside Apache Tomcat in my case) -- perhaps I need to add the codec
jars to Railo's classpath instead? it doesn't make much sense to me
as they both should use the same class loader.
unless of course, Lucene 4 is using a different class-loader to load
these classes. (does it?)
as an aside -- Lucene 3.6 was running properly in that same
environment before.
Igal
On 1/8/2013 9:48 PM, Steve Rowe wrote:
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 error: Cannot
instantiate SPI class:
org.apache.lucene.codecs.appending.AppendingCodec
any ideas?
TIA
stacktrace below:
Cannot instantiate SPI class:
org.apache.lucene.codecs.appending.AppendingCodec at
org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:104):104
at
org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:100):100
at
org.apache.lucene.codecs.lucene40.Lucene40Codec.<init>(Lucene40Codec.java:114):114
at
org.apache.lucene.codecs.appending.AppendingCodec.<init>(AppendingCodec.java:34):34
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method):-2 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source):-1 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source):-1 at java.lang.reflect.Constructor.newInstance(Unknown
Source):-1 at java.lang.Class.newInstance0(Unknown Source):-1 at
java.lang.Class.newInstance(Unknown Source):-1 at
org.apache.lucene.util.NamedSPILoader.reload(NamedSPILoader.java:62):62
at
org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:42):42
at
org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:37):37
at org.apache.lucene.codecs.Codec.<clinit>(Codec.java:41):41 at
org.apache.lucene.index.LiveIndexWriterConfig.<init>(LiveIndexWriterConfig.java:118):118
at
org.apache.lucene.index.IndexWriterConfig.<init>(IndexWriterConfig.java:145):145
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method):-2 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source):-1 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source):-1 at java.lang.reflect.Constructor.newInstance(Unknown
Source):-1 at
railo.runtime.reflection.pairs.ConstructorInstance.invoke(ConstructorInstance.java:34):34
at
railo.runtime.reflection.Reflector.callConstructor(Reflector.java:653):653
at railo.runtime.java.JavaObject.init(JavaObject.java:311):311 at
railo.runtime.java.JavaObject.call(JavaObject.java:235):235 at
railo.runtime.java.JavaObject.call(JavaObject.java:272):272 at
railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723
at
railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506
at
s21.search.lucene4search_cfc$cf._1(E:\Websites\_S21WAF\CFC\s21\search\Lucene4Search.cfc:92):92
at
s21.search.lucene4search_cfc$cf.udfCall(E:\Websites\_S21WAF\CFC\s21\search\Lucene4Search.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103
at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at
railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at
railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:775):775
at
railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723
at
railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506
at
s21.search.lucene4search_cfc$cf._1(E:\Websites\_S21WAF\CFC\s21\search\Lucene4Search.cfc:142):142
at
s21.search.lucene4search_cfc$cf.udfCall(E:\Websites\_S21WAF\CFC\s21\search\Lucene4Search.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103
at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at
railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:572):572 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:490):490 at
railo.runtime.ComponentImpl.call(ComponentImpl.java:1781):1781 at
railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723
at
railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506
at
_test.lucene4_cfm$cf.call(E:\Websites\21solutions\_test\lucene4.cfm:14):14
at
railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:772):772 at
railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:753):753 at
railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:183):183
at
railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18
at
railo.runtime.PageContextImpl.execute(PageContextImpl.java:2255):2255 at
railo.runtime.PageContextImpl.execute(PageContextImpl.java:2222):2222 at
railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:315):315
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722):722
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
at
net.twentyonesolutions.servlet.filters.RequestThreadsMonitor.doFilter(RequestThreadsMonitor.java:152):152
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243):243
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
at
net.twentyonesolutions.servlet.filters.BlockedIpFilter.doFilter(BlockedIpFilter.java:90):90
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243):243
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222):222
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123):123
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168):168
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99):99
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407):407
at
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197):197
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585):585
at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813):1813
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source):-1 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source):-1 at java.lang.Thread.run(Unknown Source):-1
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org