【问题标题】:tomcat7 server has error filterstart, and does not starttomcat7服务器有错误filterstart,并且不启动
【发布时间】:2013-06-19 08:31:38
【问题描述】:

我正在尝试在 ubuntu 13.04 的 tomcat7 下运行 solr 4.3.0。请参阅下面的日志 sn-p,这是我尝试通过运行 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。

【问题讨论】:

    标签: tomcat solr tomcat7 solr4


    【解决方案1】:

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

    发生了什么变化

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

    为什么会改变?

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

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

    【讨论】:

    • 非常感谢佩奇!我一直在努力解决它……现在我可以浏览到 localhost/solr
    【解决方案2】:

    我不是 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**
    

    【讨论】:

    • 我卸载了 tomcat7 并安装了 tomcat6,试图启动它给 2013 年 6 月 19 日下午 2:32:12 org.apache.catalina.startup.Embedded initDirs 严重:在 /usr 找不到指定的临时文件夹/share/tomcat6/temp 2013 年 6 月 19 日下午 2:32:12 org.apache.catalina.startup.Catalina 加载警告:无法从 /usr/share/tomcat6/conf/server.xml 加载 server.xml跨度>
    • 现在,我在 /etc/tomcat6/ 中有一个 server.xml,我应该把这个文件复制到 /usr/share/tomcat6/con/f 吗?我还要自己制作临时文件夹吗?
    猜你喜欢
    • 1970-01-01
    • 2020-08-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多