tomcat可以正常启动,能够访问localhost:8080,不能访问localhost:8080/solr
来源:互联网 发布:讯猫软件 编辑:程序博客网 时间:2024/05/16 03:40
I have big problems installing Solr 4.3 under Ubuntu 12.04. Firstly i installed tomcat. I can access tomcat via browser on localhost:8080. Into "Tomcat Web Application Manager" i try to install Solr 4.3 via 2solr.war" file. The file is been uploaded an deployed. But i cant get it started. "FAIL - Application at context path /solr could not be started".
The log file (localhost.log
) look like:
07.05.2013 11:05:36 org.apache.catalina.core.ApplicationContext logINFO: HTMLManager: start: Starting web application at '/solr'07.05.2013 11:05:36 org.apache.catalina.core.StandardContext filterStartSCHWERWIEGEND: Exception starting filter SolrRequestFilterorg.apache.solr.common.SolrException: Could not find necessary SLF4j logging jars. If using Jetty, the SLF4j logging jars need to go in the jetty lib/ext directory. For other containers, the corresponding directory should be used. For more information, see: http://wiki.apache.org/solr/SolrLogging at org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:105) ... 33 more07.05.2013 11:05:36 org.apache.catalina.core.ApplicationContext logINFO: HTMLManager: list: Listing contexts for virtual host 'localhost'07.05.2013 11:05:36 org.apache.catalina.core.StandardContext filterStartSCHWERWIEGEND: Exception starting filter SolrRequestFilterorg.apache.solr.common.SolrException: Could not find necessary SLF4j logging jars. If using Jetty, the SLF4j logging jars need to go in the jetty lib/ext directory. For other containers, the corresponding directory should be used. For more information, see: http://wiki.apache.org/solr/SolrLogging at org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:105) ... 21 more
catalina.....log
07.05.2013 11:05:36 org.apache.catalina.core.StandardContext startSCHWERWIEGEND: Error filterStart07.05.2013 11:05:36 org.apache.catalina.core.StandardContext startSCHWERWIEGEND: Context [/solr] startup failed due to previous errors07.05.2013 11:05:36 org.apache.catalina.startup.HostConfig checkResourcesINFO: Reloading context [/solr]07.05.2013 11:05:36 org.apache.catalina.core.StandardContext stopINFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/solr] has not been started07.05.2013 11:05:36 org.apache.catalina.core.StandardContext startSCHWERWIEGEND: Error filterStart07.05.2013 11:05:36 org.apache.catalina.core.StandardContext startSCHWERWIEGEND: Context [/solr] startup failed due to previous errors
解决办法:As the logs say -
Could not find necessary SLF4j logging jars.
You are missing the slf4j jars.
Place the
slf4j
jars in the$CATALINA_BASE/lib
folder.Copy the
SLF4j
logging jars from<solr>/example/lib/ext/*.jar
into Tomcat Lib (e.g.TOMCAT_HOME/lib
,/usr/share/tomcat/lib
) or Webapp Lib directory (e.g.TOMCAT_HOME/webapps/solr/WEB-INF/lib
). These jars will set upSLF4J
andlog4j
.If using Jetty, the
SLF4j
logging jars need to go in the jetty lib/ext directory. For other containers, the corresponding directory should be used. For more information, see: http://wiki.apache.org/solr/SolrLoggingIn other words to make your Solr working properly with Tomcat, you need to:
Copy the SLF4j logging jars from
<solr>/example/lib/ext/*.jar
into Tomcat Lib (e.g.TOMCAT_HOME/lib
,/usr/share/tomcat/lib
) or Webapp Lib directory (e.g.TOMCAT_HOME/webapps/solr/WEB-INF/lib
). These jars will set up SLF4J and log4j.For a Debian or Ubuntu server using the Tomcat package available from the OS vendor, this is likely to be
/usr/share/tomcat6/lib
or/usr/share/tomcat7/lib
.For example:
# cp -v /opt/solr-4.10.4/example/lib/ext/*.jar /usr/share/tomcat?/lib/
or:
# cp -v /opt/solr-4.10.4/example/lib/ext/*.jar /var/lib/tomcat7/webapps/solr/WEB-INF/lib/
Alternatively set-up your
CLASSPATH
to point to your jar files.Copy the logging config from
solr/example/resources/log4j.properties
into a location on the classpath. Usually you can use the same location as the jar files above and edit the configuration file for your preferred log destination.Optionally, if you did not place
log4j.properties
on the classpath, set java option:-Dlog4j.configuration=file:///path/to/log4j.properties
Restart Tomcat (e.g.
sudo /etc/init.d/tomcat7 restart
).If you still have the problems, it might help to start the server with
-Dlog4j.debug=true
to see more details.See: Using the example logging setup in containers other than Jetty
最终解决办法:1.sudo cp -v /usr/local/solr-4.10.3/example/lib/ext/*.jar /usr/local/apache-tomcat-8.0.33/lib
2.sudo cp -v /usr/local/solr-4.10.3/example/resources/log4j.properties /usr/local/apache-tomcat-8.0.33/lib
3.sudo ./shutdown.sh
4.sudo ./startup.sh
- tomcat可以正常启动,能够访问localhost:8080,不能访问localhost:8080/solr
- tomcat能正常启动,但是不能访问http://localhost:8080
- tomcat启动正常,http://localhost:8080访问不了
- eclipse添加tomcat启动正常,localhost:8080访问提示404
- eclipse添加tomcat启动正常,localhost:8080访问提示404
- Dorado7环境配置启动,Tomcat7启动正常,http://localhost:8080不能正常访问,返回404错误
- Tomcat 7.0初探-- 在Eclipse 中启动Tomcat 后, localhost:8080不能正常访问,返回404错误
- eclipse启动tomcat能访问页面,但不能访问localhost:8080
- Tomcat 可以127.0.0.1访问,但不能localhost访问
- Tomcat在eclipse里面能正常启动,而在浏览器中访问http://localhost:8080/不能访问,且报404错
- 问题:Tomcat在eclipse里面能正常启动,而在浏览器中访问http://localhost:8080/不能访问,且报404错误
- tomcat在eclipse里面能正常启动,而在浏览器中访问http://localhost:8080/不能访问,且报404错误
- 问题:Tomcat在eclipse里面能正常启动,而在浏览器中访问http://localhost:8080/不能访问,且报404错误
- IDE 启动tomcat,web应用正常访问,http://localhost:8080报404
- tomcat 能够启动 并且能够用http://127.0.0.1:8080访问 但是不能用http://localhost:8080访问的解决办法。
- tomcat 能够启动 并且能够用http://127.0.0.1:8080访问 但是不能用http://localhost:80800访问的解决办法。
- 启动启动eclipse tomcat服务器没法访问localhost:8080端口
- localhost不能访问,127.0.0.1可以访问
- 如何设置mysql远程访问
- mysql数据库的安装,mysql函数
- window.location 系列
- java中的Scanner
- 打印蛇形矩阵(二维数组)
- tomcat可以正常启动,能够访问localhost:8080,不能访问localhost:8080/solr
- spring-security之ChannelProcessingFilter
- LINUX gdb bt命令
- Python安装MySQL驱动出错
- 侧滑抽屉布局-DrawerLayout的初体验.关于点击侧滑区域就关闭的问题.
- terrier-API文档翻译
- iOS-private-api-checker私有API检测工具使用详细步骤
- 编程题,用C++编
- oracle directory使用网络映射地址