lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amrit Jassal" <ajas...@gmail.com>
Subject unsubscribe
Date Sat, 22 Mar 2008 01:25:32 GMT
unsubscribe

On Thu, Mar 20, 2008 at 8:01 PM, xunzhang huang <huangxunzhang@gmail.com>
wrote:

> Hi, everyone
>
> After I add a Analyzer to solr, there is a exception ClassCaseException
> error and solr cannot be started. the detail is:
>
> environment: solr 1.2, jdk 1.6.03, ubuntu linux 7.10, and a chinese
> analyzer
>
> I add some lines in schema.xml:
>
> <fieldtype name="text_chinese" class="solr.TextField">
>            <analyzer   class="
> net.paoding.analysis.analyzer.PaodingAnalyzer"/>
>
>  </fieldtype>
>
> I tried some different analyzer, but the same exception happened, so I
> think
> it is solr's problem or my configuration has something wrong
>
> Any ideas?
>
> the error message is:
>
> org.apache.solr.core.SolrException: Schema Parsing Failed
>        at
> org.apache.solr.schema.IndexSchema.readConfig(IndexSchema.java:556)
>        at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:
> 71)
>        at org.apache.solr.core.SolrCore.<init>(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
> :
> 147)
>        at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart
> (ContextHandlerCo
>
> llection.java:
> 161)
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 40)
>        at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java
> :
> 147)
>        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(NativeMethodAccessorImpl.java:
> 39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:
> 25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        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.ClassCastException:
> net.paoding.analysis.analyzer.PaodingAnalyzer cannot be cast to
> org.apache.lucene.analysis.Analyzer
>        at
> org.apache.solr.schema.IndexSchema.readAnalyzer(IndexSchema.java:583)
>        at
> org.apache.solr.schema.IndexSchema.readConfig(IndexSchema.java:331)
>        ... 28 more
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message