Java中遇到的很多错误都是因为缺少Jar包造成的,现在汇总如下:
- 前台jsp报错:
加入jstl.jar和standard.jarCan not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
- 启动tomcat报错
之前使用的xwork-core-2.1.6.jar版本太低,换成xwork-core-2.2.1.jarjava.lang.NoSuchMethodError: com.opensymphony.xwork2.util.finder.ClassFinder.(Lcom/opensymphony/xwork2/util/finder/ClassLoaderInterface;Ljava/util/Collection;ZLjava/util/Set;Lcom/opensymphony/xwork2/util/finder/Test;)V
加入commons-logging.jarException in thread “main” java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory