lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhadra Mani <bhadram...@gmail.com>
Subject Fwd: Solr and OpenNLP - Error loading class 'solr.OpenNLPTokenizerFactory'
Date Wed, 18 Jun 2014 11:51:41 GMT
I am facing this issue
https://issues.apache.org/jira/browse/SOLR-3625
but adding to solrconfig.xml doesnot work.
it is on 4.8.1
Thanks,
Bhadra

---------- Forwarded message ----------
From: Bhadra Mani <bhadramani@gmail.com>
Date: Wed, Jun 18, 2014 at 4:46 PM
Subject: Solr and OpenNLP - Error loading class
'solr.OpenNLPTokenizerFactory'
To: solr-user@lucene.apache.org


Hi All,

Using link
https://wiki.apache.org/solr/OpenNLP#Deployment_to_Solr

Followed the steps.
bin/trainall.sh - It keept running while I executed next step "go to
trunk-dir/solr and run 'ant test-contrib'"
(This has 2 test suite failed.)

Later created war file using 'ant dist'
(Build Successful)

Then run solr, working fine..

Added this =>
<fieldType name="text_opennlp" class="solr.TextField"
positionIncrementGap="100"
    >
      <analyzer>
        <tokenizer class="solr.OpenNLPTokenizerFactory"
          sentenceModel="opennlp/en-test-sent.bin"
          tokenizerModel="opennlp/en-test-tokenizer.bin"
        />
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
    </fieldType>

to schema.xml

now getting this error. Please help

4961 [coreLoadExecutor-4-thread-1] WARN
org.apache.solr.core.SolrResourceLoader  – Solr loaded a deprecated
plugin/analysis class [solr.DoubleField]. Please consult documentation how
to replace it accordingly.
4970 [coreLoadExecutor-4-thread-1] WARN
org.apache.solr.core.SolrResourceLoader  – Solr loaded a deprecated
plugin/analysis class [solr.DateField]. Please consult documentation how to
replace it accordingly.
5829 [coreLoadExecutor-4-thread-1] WARN
org.apache.solr.core.SolrResourceLoader  – Solr loaded a deprecated
plugin/analysis class [solr.ThaiWordFilterFactory]. Please consult
documentation how to replace it accordingly.
5875 [coreLoadExecutor-4-thread-1] ERROR
org.apache.solr.core.CoreContainer  – Unable to create core: collection1
org.apache.solr.common.SolrException: Could not load core configuration for
core collection1
    at
org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:66)
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554)
    at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:261)
    at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:253)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.solr.common.SolrException: Plugin init failure for
[schema.xml] fieldType "text_opennlp": Plugin init failure for [schema.xml]
analyzer/tokenizer: Error loading class 'solr.OpenNLPTokenizerFactory'.
Schema file is /home/bhadra/svn3/solr/example/solr/collection1/schema.xml
    at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:616)
    at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:166)
    at
org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55)
    at
org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69)
    at
org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:89)
    at
org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:62)
    ... 9 more
Caused by: org.apache.solr.common.SolrException: Plugin init failure for
[schema.xml] fieldType "text_opennlp": Plugin init failure for [schema.xml]
analyzer/tokenizer: Error loading class 'solr.OpenNLPTokenizerFactory'
    at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:177)
    at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:470)
    ... 14 more
Caused by: org.apache.solr.common.SolrException: Plugin init failure for
[schema.xml] analyzer/tokenizer: Error loading class
'solr.OpenNLPTokenizerFactory'
    at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:177)
    at
org.apache.solr.schema.FieldTypePluginLoader.readAnalyzer(FieldTypePluginLoader.java:362)
    at
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:95)
    at
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:43)
    at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
    ... 15 more
Caused by: org.apache.solr.common.SolrException: Error loading class
'solr.OpenNLPTokenizerFactory'
    at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:490)
    at
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:593)
    at
org.apache.solr.schema.FieldTypePluginLoader$2.create(FieldTypePluginLoader.java:342)
    at
org.apache.solr.schema.FieldTypePluginLoader$2.create(FieldTypePluginLoader.java:335)
    at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
    ... 19 more
Caused by: java.lang.ClassNotFoundException: solr.OpenNLPTokenizerFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:789)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:270)
    at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:474)
    ... 23 more
5882 [coreLoadExecutor-4-thread-1] ERROR
org.apache.solr.core.CoreContainer  –
null:org.apache.solr.common.SolrException: Unable to create core:
collection1
    at
org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:911)
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:568)
    at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:261)
    at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:253)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.solr.common.SolrException: Could not load core
configuration for core collection1
    at
org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:66)
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554)
    ... 8 more
Caused by: org.apache.solr.common.SolrException: Plugin init failure for
[schema.xml] fieldType "text_opennlp": Plugin init failure for [schema.xml]
analyzer/tokenizer: Error loading class 'solr.OpenNLPTokenizerFactory'.
Schema file is /home/bhadra/svn3/solr/example/solr/collection1/schema.xml
    at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:616)
    at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:166)
    at
org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55)
    at
org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69)
    at
org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:89)
    at
org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:62)
    ... 9 more
Caused by: org.apache.solr.common.SolrException: Plugin init failure for
[schema.xml] fieldType "text_opennlp": Plugin init failure for [schema.xml]
analyzer/tokenizer: Error loading class 'solr.OpenNLPTokenizerFactory'
    at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:177)
    at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:470)
    ... 14 more
Caused by: org.apache.solr.common.SolrException: Plugin init failure for
[schema.xml] analyzer/tokenizer: Error loading class
'solr.OpenNLPTokenizerFactory'
    at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:177)
    at
org.apache.solr.schema.FieldTypePluginLoader.readAnalyzer(FieldTypePluginLoader.java:362)
    at
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:95)
    at
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:43)
    at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
    ... 15 more
Caused by: org.apache.solr.common.SolrException: Error loading class
'solr.OpenNLPTokenizerFactory'
    at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:490)
    at
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:593)
    at
org.apache.solr.schema.FieldTypePluginLoader$2.create(FieldTypePluginLoader.java:342)
    at
org.apache.solr.schema.FieldTypePluginLoader$2.create(FieldTypePluginLoader.java:335)
    at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
    ... 19 more
Caused by: java.lang.ClassNotFoundException: solr.OpenNLPTokenizerFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:789)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:270)
    at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:474)
    ... 23 more

5886 [main] INFO  org.apache.solr.servlet.SolrDispatchFilter  –
user.dir=/home/bhadra/svn3/solr/example
5886 [main] INFO  org.apache.solr.servlet.SolrDispatchFilter  –
SolrDispatchFilter.init() done
5981 [main] INFO  org.eclipse.jetty.server.AbstractConnector  – Started
SocketConnector@0.0.0.0:8983

Thanks,
Bhadra

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