lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hung Huynh" ...@vinaconsulting.com>
Subject RE: Help with Solr + KStem
Date Mon, 19 May 2008 21:46:20 GMT
Otis,

Thanks for helping me out. I downloaded the KStem source you provided below.
I have .class files for /apache/lucene/analysis/KStem*.class and
/apache/solr/analysis/KStemFilterFactory.class compiled from Eclipse. What
do I do next? Sorry, I'm a complete newbie in Java and Solr.

Do I ?
1. Jar up all /lucense/analysis/Kstem*.class and put KStem.jar in solr/lib
2. What do I do with /apache/solr/analysis/KStemFilterFactory.class? I'm
still getting similar errors about class_not_found everytime I hit Solr
Admin.

I originally tried to use the pre-compiled KStem2.jar version from Harry
Wagner. That didn't work for me either or rather I didn't know what to do
with it.

Thanks,

Hung

-----Original Message-----
From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] 
Sent: Wednesday, May 14, 2008 4:06 PM
To: solr-user@lucene.apache.org
Subject: Re: Help with Solr + KStem

Hung,

You included the KStem jar itself, and that is good, but class
KStemFilterFactory does not exist anywhere in Solr.
You need to get it from here:
https://issues.apache.org/jira/browse/SOLR-379

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch


----- Original Message ----
> From: Hung Huynh <hh@vinaconsulting.com>
> To: solr-user@lucene.apache.org
> Sent: Wednesday, May 14, 2008 3:57:29 PM
> Subject: Help with Solr + KStem
> 
> 
> I have KStem.jar in solr/lib and solr/example/lib and made a change to
> schema.xml to include the KStem line (removed the Porter line).
> 
>         
>     
> 
> This is what I get when I try to hit the Solr Admin page. How can I go
about
> resolving this error?
> 
> Thanks,
> 
> HH
> 
> ---------------------------
> 
> 
> HTTP ERROR: 500
> Severe errors in solr configuration.
> 
> Check your log files for more detailed infomation on what may be wrong.
> 
> If you want solr to continue after configuration errors, change: 
> 
> false
> 
> in solrconfig.xml
> 
> -------------------------------------------------------------
> org.apache.solr.core.SolrException: Error loading class
> 'solr.KStemFilterFactory'
>     at org.apache.solr.core.Config.findClass(Config.java:220)
>     at org.apache.solr.core.Config.newInstance(Config.java:225)
>     at
>
org.apache.solr.schema.IndexSchema.readTokenFilterFactory(IndexSchema.java:6
> 29)
>     at
> org.apache.solr.schema.IndexSchema.readAnalyzer(IndexSchema.java:607)
>     at
> org.apache.solr.schema.IndexSchema.readConfig(IndexSchema.java:331)
>     at org.apache.solr.schema.IndexSchema.(IndexSchema.java:71)
>     at org.apache.solr.core.SolrCore.(SolrCore.java:196)
>     at org.apache.solr.core.SolrCore.getSolrCore(SolrCore.java:177)
>     at
>
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69)
>     at
> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>     at
>
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
>     at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>     at
>
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
>     at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
>     at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>     at
>
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:1
> 47)
>     at
>
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCol
> lection.java:161)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>     at
>
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:1
> 47)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>     at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
>     at org.mortbay.jetty.Server.doStart(Server.java:210)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>     at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at org.mortbay.start.Main.invokeMain(Main.java:183)
>     at org.mortbay.start.Main.start(Main.java:497)
>     at org.mortbay.start.Main.main(Main.java:115)
> Caused by: java.lang.ClassNotFoundException: solr.KStemFilterFactory
>     at java.net.URLClassLoader$1.run(Unknown Source)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(Unknown Source)
>     at java.lang.ClassLoader.loadClass(Unknown Source)
>     at java.lang.ClassLoader.loadClass(Unknown Source)
>     at
>
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
> 375)
>     at
>
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
> 337)
>     at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>     at java.lang.Class.forName0(Native Method)
>     at java.lang.Class.forName(Unknown Source)
>     at org.apache.solr.core.Config.findClass(Config.java:204)
>     ... 32 more
> 
> RequestURI=/solr/admin
> 
> Powered by Jetty://



Mime
View raw message