使用solr4.9部署到tomcat上出现Context [/solr] startup failed due to previous errors问题以及解决办法
2014-08-28 15:41
1176 查看
1. 首先下载solr的最新版本4.9,要求jdk版本7.0以上,下载地址为:http://www.apache.org/dyn/closer.cgi/lucene/solr/4.9.0
2.解压下载的solr到 D:\SOA\solr-4.9.0
3.把D:\SOA\solr-4.9.0\example\webapps\solr.war部署到tomcat7.0的webapp目录下,启动tomcat后关闭tomcat,tomcat会把solr.war自动解压,
4.修改解压后solr文件夹里webinfo\web.xml文件
放开下面的注释
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>D:\\SOA\\solrHome</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
5.新建一个文件夹命名为solrHome,并把D:\SOA\solr-4.9.0\example\multicore下所有的文件拷贝到solrHome文件夹中
6.重新启动tomcat,出现以下错误。
访问localhost:8080\solr出现404错误
解决办法:
1.拷贝D:\SOA\solr-4.9.0\[b]example\lib\ext 里面的所有jar包拷贝到tomcat7.0\lib下[/b]
2.D:\SOA\solr-4.9.0\example\resources\log4j.properties 文件拷到tomcat7.0\lib
否者会出现以下错误
3.启动tomcat并在浏览器输入localhost:8080\solr
成功解决
2.解压下载的solr到 D:\SOA\solr-4.9.0
3.把D:\SOA\solr-4.9.0\example\webapps\solr.war部署到tomcat7.0的webapp目录下,启动tomcat后关闭tomcat,tomcat会把solr.war自动解压,
4.修改解压后solr文件夹里webinfo\web.xml文件
放开下面的注释
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>D:\\SOA\\solrHome</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
5.新建一个文件夹命名为solrHome,并把D:\SOA\solr-4.9.0\example\multicore下所有的文件拷贝到solrHome文件夹中
6.重新启动tomcat,出现以下错误。
访问localhost:8080\solr出现404错误
解决办法:
1.拷贝D:\SOA\solr-4.9.0\[b]example\lib\ext 里面的所有jar包拷贝到tomcat7.0\lib下[/b]
2.D:\SOA\solr-4.9.0\example\resources\log4j.properties 文件拷到tomcat7.0\lib
否者会出现以下错误
3.启动tomcat并在浏览器输入localhost:8080\solr
成功解决
相关文章推荐
- 当遇到Context [/TSORM] startup failed due to previous errors时,解决办法:配置tomcat的日志获取错误信息
- activiti-explorer.war部署tomcat报 “Context [/activiti-explorer] startup failed due to previous errors”
- 严重: Error listenerStart 严重: Context [/testWSH] startup failed due to previous errors错误的原因和解决办法
- eclipse中出现Context startup failed due to previous errors错误解决方法
- eclipse中出现Context startup failed due to previous errors错误解决方法
- Tomcat之——Context []startup failed due to previous errors有效解决方式
- 关于eclipse部署的项目用tomcat直接跑出现:startup failed due to previous errors
- Context []startup failed due to previous errors有效解决方式
- tomcat报 Context [] startup failed due toprevious errors
- 关于Context []startup failed due to previous errors有效解决方式
- 关于Context []startup failed due to previous errors有效解决方式
- 关于Context []startup failed due to previous errors有效解决方式
- 【Tomcat】严重: Context [/grouponAdminWeb] startup failed due to previous errors
- tomcat bug之部署应用的时候经常会发上startup failed due to previous errors
- 关于Context []startup failed due to previous errors有效解决方式
- 关于Context []startup failed due to previous errors有效解决方式
- TOMCAT 显示 Context [/zhgsServer] startup failed due to previous errors
- 启动Tomcat报错:严重: Context startup failed due to previous errors
- Context []startup failed due to previous errors有效解决方式
- 关于tomcat报Error listenerStart和Context [*] startup failed due to previous errors两个错误的总结