故障表现:tomcat可以正常启动,但是浏览器显示找不到页面,404。
经观察发现tomcat启动时控制台出现错误提示:
严重: Dispatcher initialization failed
严重: Exception starting filter struts2
严重: Error filterStart
2017-3-4 16:06:35 org.apache.catalina.core.StandardContext startInternal
严重: Context [/mylims1.2] startup failed due to previous errors
2017-3-4 16:06:35 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/mylims1.2] created a ThreadLocal with key of type [com.sun.faces.util.Util1](value[com.sun.faces.util.Util1@377e4cec]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2017-3-4 16:06:35 org.apache.catalina.startup.HostConfig deployDirectory
原因:经排除发现,一个新的配置文件有问题,把他注释之后,可以正常使用。最后发现,是action的class属性中没有写包名。
故障表现:tomcat可以正常启动,但是浏览器显示找不到页面,404。
Tomcat启动404问题
最新推荐文章于 2025-03-07 17:47:19 发布
本文记录了一次Tomcat启动后浏览器显示404的问题排查过程,通过控制台错误日志定位到配置文件问题,并最终发现是由于action的class属性未正确填写包名导致。
3880

被折叠的 条评论
为什么被折叠?



