Tomcat-8.0.44:为什么SEVERE日志"一个或多个过滤器无法启动"

时间:2017-05-23 17:37:44

标签: java tomcat tomcat8

我安装了Tomcat-8.0.44并在webapps文件夹中放了一个名为bimserver.war的war文件。但是当我运行startup.bat例程时,我收到了两个严重日志信息:

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启动。应该如何配置过滤器?

2 个答案:

答案 0 :(得分:1)

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

答案 1 :(得分:0)

在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

详细信息位于日志文件/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的{​​{1}}使用cors.support.credentials。将true设置为cors.support.credentials可以解决此问题。

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