在这篇文章中对可能出现的多种情况进行了阐述:
http://hj419460467.blog.163.com/blog/static/186366202011520323459/
自己碰到的几个情况
spring缺少:aopalliance.jar
Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
缺少struts:commons-logging.jar
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
hibernate缺少:ejb3-persistence.jar
java.lang.NoClassDefFoundError: javax/persistence/EntityListeners
struts缺少:commons-lang.jar
java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
struts缺少:commons-fileupload.jar
java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext
看来有机会还是要学习一下Maven,自己处理包之间的依赖关系太蛋疼了。