solr - org.apache.solr.common.SolrException: Could not load config for solrconfig.xml
来源:互联网 发布:网络集中监控平台 编辑:程序博客网 时间:2024/06/08 10:07
错误:org.apache.solr.common.SolrException: Could not load config for solrconfig.xml
解决:solr/home位置不对。让它指向solr-4.1.0\example\solr就行了,我已经copy到WebRoot了。
找到web.xml中的
<!--
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>/put/your/solr/home/here</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
-->
修改成
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>C:/CHRUAN/workspace/solr-4.1.0/WebRoot/solr</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
错误详情:
2013-3-7 9:06:35 org.apache.solr.core.CoreContainer recordAndThrow
严重: Unable to create core: collection1
org.apache.solr.common.SolrException: Could not load config for solrconfig.xml
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:973)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1033)
at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:629)
at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or 'solr\collection1\conf/', cwd=C:\CHRUAN\develop\eclipse-jee-helios-SR1-win32\eclipse
at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:316)
at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:281)
at org.apache.solr.core.Config.<init>(Config.java:103)
at org.apache.solr.core.Config.<init>(Config.java:73)
at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:117)
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:971)
... 11 more
2013-3-7 9:06:35 org.apache.solr.common.SolrException log
严重: null:org.apache.solr.common.SolrException: Unable to create core: collection1
at org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:1654)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1039)
at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:629)
at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.solr.common.SolrException: Could not load config for solrconfig.xml
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:973)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1033)
... 10 more
Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or 'solr\collection1\conf/', cwd=C:\CHRUAN\develop\eclipse-jee-helios-SR1-win32\eclipse
at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:316)
at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:281)
at org.apache.solr.core.Config.<init>(Config.java:103)
at org.apache.solr.core.Config.<init>(Config.java:73)
at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:117)
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:971)
... 11 more
- solr - org.apache.solr.common.SolrException: Could not load config for solrconfig.xml
- solr服务器报错:org.apache.solr.common.SolrException: Could not find necessary SLF4j logging jars
- org.apache.solr.common.SolrException
- schema.doc.xml报错pic: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Coul
- Solr org.apache.solr.common.SolrException: undefined field text
- 使用SolrCloud出现org.apache.solr.common.SolrException: Collection not found: my_solr2
- org.apache.solr.common.SolrException: ERROR: multiple values encountered for non multiValued copy
- org.apache.solr.common.SolrException: No such core: core0
- org.apache.solr.common.SolrException: Request-URI Too Large
- 求解决 org.apache.solr.common.SolrException: Internal Server Error
- SEVERE: org.apache.solr.common.SolrException: undefined field text
- org.apache.solr.common.SolrException: undefined field text 的解决办法
- solrExecption : org.apache.solr.common.SolrException: undefined field text
- org.apache.solr.common.SolrException: undefined field text
- org.apache.solr.common.SolrException: undefined field text
- org.apache.solr.common.SolrException: Error opening new searcher
- org.apache.solr.common.SolrException undefined field text
- solr启动时报错org.apache.solr.common.SolrException: undefined field text的解决办法
- 关键一句话
- 开源搜索Elasticsearch:PB级数据的快速搜索 月下载量已达20万次
- extjs4入门
- 淘宝:OceanBase分布式系统负载均衡案例分享
- java中的equals函数与==的关系
- solr - org.apache.solr.common.SolrException: Could not load config for solrconfig.xml
- 大型网站系统架构分析
- 博弈论集锦
- 用实SQL语句
- Servlet中获取客服端Ip地址
- mac .profile git 配置
- 3_20130307_添加界面
- java synchronized
- ios 清除UIScrollView的内容