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

时间:2013-06-19 08:31:38

标签: tomcat solr tomcat7 solr4

我试图在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。

2 个答案:

答案 0 :(得分:4)

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

  

改变了什么

     

这些版本不包含WAR文件中的任何日志记录jar。它们必须单独提供。这些版本的Solr示例包括jar(在jetty lib / ext目录中),它设置SLF4J并绑定到Apache log4j库。

     

为什么会改变?

     

更改了日志记录设置以提高灵活性。对于旧版本,更改日志记录机制需要从源代码构建特殊目标或对WAR文件进行手术。现在,只需更改jar文件,任何人都可以更改为其他日志记录机制或升级到更新的组件版本。

请参阅Using the example logging setup in containers other than Jetty 对于配置Solr Logging以使其与Tomcat正常工作所需的步骤。当我升级到Solr 4.3时,我遇到了同样的问题并且纠正了它。

答案 1 :(得分:0)

我不是TomCat专家,但我会说你的配置对你的solr4 servlet有问题

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**