gpt4 book ai didi

tomcat7服务器有错误filterstart,无法启动

转载 作者:行者123 更新时间:2023-11-28 22:35:51 25 4
gpt4 key购买 nike

我正在尝试在 ubuntu 13.04 中的 tomcat7 下运行 solr 4.3.0。请查看下面的日志片段,这是我在尝试通过运行 catalina.sh 启动 tomcat 时得到的。如日志中所示,我收到错误 filterStart。我该如何解决?

sonu@sonu-Vostro-1550:~$ sudo /usr/share/tomcat7/bin/catalina.sh run
Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME: /usr/lib/jvm/java-7-oracle
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Jun 19, 2013 1:35:35 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-9999"]
Jun 19, 2013 1:35:35 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 654 ms
Jun 19, 2013 1:35:35 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 19, 2013 1:35:35 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.35
Jun 19, 2013 1:35:35 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/host- manager.xml
Jun 19, 2013 1:35:36 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/manager.xml
Jun 19, 2013 1:35:36 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/docs.xml
Jun 19, 2013 1:35:36 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/solr4.xml
Jun 19, 2013 1:35:36 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
**Jun 19, 2013 1:35:40 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
Jun 19, 2013 1:35:40 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/solr4] startup failed due to previous errors**
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/examples.xml
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
Jun 19, 2013 1:35:40 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-9999"]
Jun 19, 2013 1:35:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5096 ms
^CJun 19, 2013 1:37:00 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-9999"]
Jun 19, 2013 1:37:00 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jun 19, 2013 1:37:00 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-9999"]
Jun 19, 2013 1:37:00 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-9999"]
sonu@sonu-Vostro-1550:~$

我已经在/etc/tomcat7 的 server.xml 中将默认端口更改为 9999。我无法打开 localhost:9999 或 localhost:9999/solr。

最佳答案

您遇到的问题与 Solr 4.3 中日志记录机制的更改有关。来自Solr Logging页:

What changed

These versions do not include any logging jars in the WAR file. They must be provided separately. The Solr example for these versions includes jars (in the jetty lib/ext directory) that set up SLF4J with a binding to the Apache log4j library.

Why did it change?

The logging setup was changed for increased flexibility. With older versions, changing your logging mechanism required either building a special target from the source code or doing surgery on the WAR file. Now anyone can change to another logging mechanism or upgrade to newer component versions simply by changing jar files.

请参阅Using the example logging setup in containers other than Jetty了解配置 Solr Logging 以与 Tomcat 一起正常工作所需的步骤。当我升级到 Solr 4.3 时我遇到了同样的问题,这更正了它。

关于tomcat7服务器有错误filterstart,无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17186484/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com