lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Sekiguchi <k...@r.email.ne.jp>
Subject Re: Error loading class 'solr.HTMLStripStandardTokenizerFactory'
Date Thu, 03 Jun 2010 10:59:25 GMT
(10/06/03 13:46), Terance Dias wrote:
> Hi,
>
> I'm trying to use the field collapsing feature.
> For that I need to take a checkout of the trunk and apply the patch
> available at https://issues.apache.org/jira/browse/SOLR-236
> When I take a checkout and run the example-DIH, I get following error in
> browser on doing dataimport?command=full-import
>
> org.apache.solr.common.SolrException: Plugin init failure for [schema.xml]
> analyzer/tokenizer:Error loading class
> 'solr.HTMLStripStandardTokenizerFactory'
>          at
> org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:168)
>          at
> org.apache.solr.schema.IndexSchema.readAnalyzer(IndexSchema.java:904)
>          at
> org.apache.solr.schema.IndexSchema.access$100(IndexSchema.java:60)
>          at org.apache.solr.schema.IndexSchema$1.create(IndexSchema.java:445)
>          at org.apache.solr.schema.IndexSchema$1.create(IndexSchema.java:435)
>          at
> org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:142)
>          at
> org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:480)
>          at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:122)
>          at org.apache.solr.core.CoreContainer.create(CoreContainer.java:429)
>          at org.apache.solr.core.CoreContainer.load(CoreContainer.java:286)
>          at org.apache.solr.core.CoreContainer.load(CoreContainer.java:198)
>          at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:123)
>          at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:86)
>          at
> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
>          at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>          at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
>          at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>          at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
>          at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>          at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
>          at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>          at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>          at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>          at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>          at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>          at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>          at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>          at org.mortbay.jetty.Server.doStart(Server.java:224)
>          at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>          at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
>          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:194)
>          at org.mortbay.start.Main.start(Main.java:534)
>          at org.mortbay.start.Main.start(Main.java:441)
>          at org.mortbay.start.Main.main(Main.java:119)
> Caused by: org.apache.solr.common.SolrException: Error loading class
> 'solr.HTMLStripStandardTokenizerFactory'
>          at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:388)
>          at
> org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:403)
>          at
> org.apache.solr.util.plugin.AbstractPluginLoader.create(AbstractPluginLoader.java:85)
>          at
> org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:142)
>          ... 37 more
> Caused by: java.lang.ClassNotFoundException:
> solr.HTMLStripStandardTokenizerFactory
>          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>          at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:592)
>          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>          at java.lang.Class.forName0(Native Method)
>          at java.lang.Class.forName(Class.java:247)
>          at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:372)
>          ... 40 more
>
>
> Because of this error I cannot proceed with applying the patch and trying
> out the field collapsing feature.
> Appreciate any help.
>
> Thanks,
> Terance.
>    
Terance,

Thank you for your report this. As HTMLStrip*TokenizerFactories are
no more available in trunk but schema.xml in example-DIH uses them,
you got the error.

I've fixed it in trunk now. So can you svn update your working directory
and try again?

Koji

-- 
http://www.rondhuit.com/en/


Mime
View raw message