开始使用struts时报错 java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
时间:2015-12-08 18:05:59
收藏:0
阅读:139
报错内容:
org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
下面不贴了。
原因是
工程的build path是有StringUtils.class这个类的,只不过放到了 用户lib里,在该工程中只是添加了该lib,并未加到WebContent/WEB-INF目录下。
综合考虑了这两个帖子,把问题解决了
http://bbs.csdn.net/topics/390442390?page=1
http://bbs.csdn.net/topics/370173895
总结:原因:User Library导入到环境的包只是逻辑导入。tomcat运行时需要在WEB-INF/lib下找相应的包(而此时找不到)。
原文:http://www.cnblogs.com/yangdm/p/5029690.html
评论(0)