故障表现: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.Util
1](value[com.sun.faces.util.Util
1@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。
最新推荐文章于 2023-03-18 11:09:45 发布