Tomcat-8.0.44:为什么会出现SEVERE日志“一个或多个筛选器启动失败”

quhf5bfb  于 2022-11-13  发布在  其他
关注(0)|答案(2)|浏览(101)

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

erhoui1w

erhoui1w1#

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

gudnpqoy

gudnpqoy2#

在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解决了此问题。
找到并检查正确的日志文件解决了我的问题。

相关问题