iluvsnail / jcseg

Automatically exported from code.google.com/p/jcseg
0 stars 0 forks source link

solr4.10中配置失败(已解决) #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init 
failure: Could not load conf for core collection1: Plugin init failure for 
[schema.xml] fieldType "textComplex": Plugin init failure for [schema.xml] 
analyzer/tokenizer: Error loading class 
'org.lionsoul.jcseg.solr.JcsegTokenizerFactory'. Schema file is 
/configs/myconf/schema.xml,trace=org.apache.solr.common.SolrException: SolrCore 
'collection1' is not available due to init failure: Could not load conf for 
core collection1: Plugin init failure for [schema.xml] fieldType "textComplex": 
Plugin init failure for [schema.xml] analyzer/tokenizer: Error loading class 
'org.lionsoul.jcseg.solr.JcsegTokenizerFactory'. Schema file is 
/configs/myconf/schema.xml at 
org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:745) at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:347)
 at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:241) at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:208) at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
20) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
22) at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) 
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116
) at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor
.java:1070) at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractPro
tocol.java:611) at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:6
1) at java.lang.Thread.run(Thread.java:745) Caused by: 
org.apache.solr.common.SolrException: Could not load conf for core collection1: 
Plugin init failure for [schema.xml] fieldType "textComplex": Plugin init 
failure for [schema.xml] analyzer/tokenizer: Error loading class 
'org.lionsoul.jcseg.solr.JcsegTokenizerFactory'. Schema file is 
/configs/myconf/schema.xml at 
org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:66) at 
org.apache.solr.core.CoreContainer.create(CoreContainer.java:489) at 
org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:255) at 
org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:249) 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) 
... 1 more Caused by: org.apache.solr.common.SolrException: Plugin init failure 
for [schema.xml] fieldType "textComplex": Plugin init failure for [schema.xml] 
analyzer/tokenizer: Error loading class 
'org.lionsoul.jcseg.solr.JcsegTokenizerFactory'. Schema file is 
/configs/myconf/schema.xml at 
org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:595) 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.ja
va:69) at 
org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:90
) at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:62) 
... 7 more Caused by: org.apache.solr.common.SolrException: Plugin init failure 
for [schema.xml] fieldType "textComplex": Plugin init failure for [schema.xml] 
analyzer/tokenizer: Error loading class 
'org.lionsoul.jcseg.solr.JcsegTokenizerFactory' at 
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:
177) at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:486) ... 
12 more Caused by: org.apache.solr.common.SolrException: Plugin init failure 
for [schema.xml] analyzer/tokenizer: Error loading class 
'org.lionsoul.jcseg.solr.JcsegTokenizerFactory' 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:9
5) at 
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:4
3) at 
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:
151) ... 13 more Caused by: org.apache.solr.common.SolrException: Error loading 
class 'org.lionsoul.jcseg.solr.JcsegTokenizerFactory' 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) ... 17 more Caused by: java.lang.ClassNotFoundException: 
org.lionsoul.jcseg.solr.JcsegTokenizerFactory 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:274) at 
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:474) 
... 21 more ,code=500}

Original issue reported on code.google.com by 1198668...@qq.com on 26 Dec 2014 at 8:26

GoogleCodeExporter commented 8 years ago
http://www.oschina.net/p/jcseg 有问题的解决回答。

Original comment by chenxin6...@gmail.com on 1 Apr 2015 at 3:00