配置Struts2.2.3环境时,web.xml, struts.xml都设定完后,发现只要是web.xml上加上struts2的filter后,启动tomcat后就
开不了index.jsp.
从控制台看到tomcat启动时,报出了【严重: Exception starting filter Struts2 org.apache.commons.lang.StringUtils找不到】
于是查看添加在WEB-INF/lib里的struts2的jar包(commons-lang-2.5)。这个包里有找不到的那个类。
重启之后,能够打开index.jsp了。
本文详细阐述了在配置Struts2.2.3环境时,通过添加struts2的filter后,启动Tomcat无法打开index.jsp的故障排查过程,最终发现并解决了由commons-lang-2.5 jar包导致的问题。
1192

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



