如题配置完成后,部署到tomcat上时报了两个严重错误:
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
和
严重: Context [/hx] startup failed due to previous errors
查询了网上其他的错误发现都跟我的情况对不上,只能自己去翻tomcat的log查看错误,发现了以下错误:
严重: Exception starting filter jfinal
java.lang.NullPointerException
at com.zx.common.Config.configPlugin(Config.java:80)
......
对着地址看了以下,发现
那么问题就解决了,把这几个字段的值补上就可以正常运行了。
但个人有个问题就是为什么这个问题会报到了tomcat,而错误却很难发现。而不是报到项目里,真令人头疼啊。