【问题标题】:Tomcat-8.0.44: Why a SEVERE log "One or more Filters failed to start"Tomcat-8.0.44:为什么严重日志“一个或多个过滤器无法启动”
【发布时间】:2017-10-23 19:19:24
【问题描述】:

我安装了 Tomcat-8.0.44 并将名为 bimserver.war 的 war 文件放在 webapps 文件夹中。但是当我运行 startup.bat 例程时,我得到了两个 Severe Log 信息:

24-May-2017 01:15:53.065 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
24-May-2017 01:15:53.068 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/bimserver] startup failed due to previous errors

tomcat的某些过滤器似乎启动失败。这阻止了 bimserver 启动。过滤器应该如何配置?

【问题讨论】:

  • 您是如何配置过滤器的?

标签: java tomcat tomcat8


【解决方案1】:

正如您的日志建议 (Full details will be found in the appropriate container log file),您应该检查 Tomcat 日志,然后您会发现消息以 Exception starting filter ... 开头。

【讨论】:

  • 只是为了补充:/var/logs/tomcat8 中的日志不显示所有堆栈跟踪。转到 tomcat 路径以获取完整日志。默认安装在/usr/share/tomcat8/logs
【解决方案2】:

在 Ubuntu 18.04 上使用 Tomcat 8.5.30,我收到了错误:

08-Apr-2019 00:02:16.994 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file

详细信息在日志文件中:/var/lib/tomcat8/logs/localhost.2019-04-08.log(与/var/log/tomcat8/localhost.2019-04-08.log相同)。

详情如下:

08-Apr-2019 00:02:01.869 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter [CorsFilter]
 javax.servlet.ServletException: It is not allowed to configure supportsCredentials=[true] when allowedOrigins=[*]

我试图将* 用于cors.allowed.origins,并将cors.support.credentials 设置为true。将cors.support.credentials 设置为false 即可解决问题。

查找并检查正确的日志文件解决了我的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-12-17
    • 2016-05-28
    • 1970-01-01
    • 2018-07-16
    • 2013-04-29
    • 2016-02-17
    • 2015-09-03
    • 1970-01-01
    相关资源
    最近更新 更多