Kyr*_*Woo 13 java tomcat tomcat8
我安装了 Tomcat-8.0.44 并将一个名为 bimserver.war 的 war 文件放在 webapps 文件夹中。但是当我运行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
Run Code Online (Sandbox Code Playgroud)
好像是tomcat的一些过滤器启动失败。这导致 bimserver 无法启动。过滤器应该如何配置?
在 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
Run Code Online (Sandbox Code Playgroud)
详细信息在日志文件中:(/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=[*]
Run Code Online (Sandbox Code Playgroud)
我试图将*forcors.allowed.origins与cors.support.credentialsset to一起使用true。设置cors.support.credentials解决false问题。
查找并检查正确的日志文件解决了我的问题。
正如您的日志所示(Full details will be found in the appropriate container log file),您应该检查 Tomcat 日志,然后您可以找到以 开头的消息Exception starting filter ...。
| 归档时间: |
|
| 查看次数: |
34762 次 |
| 最近记录: |