java Tomcat-8.0.44:为什么出现严重日志“一个或多个过滤器无法启动”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44141560/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tomcat-8.0.44: Why a SEVERE log "One or more Filters failed to start"
提问by KyrinWoo
I installed Tomcat-8.0.44 and put a war file named bimserver.war in webapps folder. But when I ran the startup.bat routine, I got two Severe Log info:
我安装了 Tomcat-8.0.44 并在 webapps 文件夹中放置了一个名为 bimserver.war 的 war 文件。但是当我运行 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
It seems that some filters of tomcat failed to start. This prevented bimserver from starting. How should the filters be configured?
好像是tomcat的一些过滤器启动失败了。这阻止了 bimserver 启动。应该如何配置过滤器?
回答by Kohei TAMURA
As your log suggests (Full details will be found in the appropriate container log file
), you should check Tomcat log, and then you can find the message starts with Exception starting filter ...
.
正如您的日志所建议的那样(Full details will be found in the appropriate container log file
),您应该查看 Tomcat 日志,然后您会发现消息以Exception starting filter ...
.
回答by jgrocha
Using Tomcat 8.5.30 on Ubunt u18.04, I was getting the error:
在 Ubunt u18.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
The details were in the log file: /var/lib/tomcat8/logs/localhost.2019-04-08.log
(the same as /var/log/tomcat8/localhost.2019-04-08.log
).
详细信息在日志文件中:(/var/lib/tomcat8/logs/localhost.2019-04-08.log
与 相同/var/log/tomcat8/localhost.2019-04-08.log
)。
The details were:
详情如下:
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=[*]
I was trying to use *
for the cors.allowed.origins
with cors.support.credentials
set to true
. Setting cors.support.credentials
to false
solved the problem.
我试图用*
对cors.allowed.origins
与cors.support.credentials
设置为true
。设置cors.support.credentials
来false
解决的问题。
Finding and checking the correct log file solved my problem.
查找并检查正确的日志文件解决了我的问题。