类找不到总结java.lang.ClassNotFoundException

(1)org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class

‘com.microsoft.sqlserver.jdbc.SQLServerDriver’

     答:sqljdbc.jar

(2)java.lang.ClassNotFoundException: org.springframework.ejb.config.JeeNamespaceHandler

    答:spring-remoting.jar

(3)java.lang.ClassNotFoundException: org.springframework.scripting.config.LangNamespaceHandler   

    答:spring-support.jar

(4)java.lang.ClassNotFoundException: org.springframework.transaction.config.TxNamespaceHandler  

    答:spring-dao.jar

(5)java.lang.ClassNotFoundException: org.springframework.aop.config.AopNamespaceHandler

  答:spring-aop.jar

(6)java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap

  答:commons-collections-2.1.1.jar

(7)java.lang.ClassNotFoundException:org.springframework.scripting.config.LangNamespaceHandler

 答:添加spring-support.jar包,具体路径为:MyEclipse 6.0myeclipseeclipsepluginscom.genuitec.eclipse.springframework_6.0.1.zmyeclipse601200710data2.0distmodules
(8)java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

 答:commons-logging.jar

(9)java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

答:aopalliance.jar

(10)java.lang.NoClassDefFoundError:org/springframework/remoting/support/RemoteInvocationTraceInterceptor

答:org.springframework.context-3.0.5.RELEASE.jar 包

(11)java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice

答:com.springsource.org.aopalliance-1.0.0.jar包


本文来自:http://hi.baidu.com/jingbaobei2979/blog/item/e3874ef8d23f6b41252df2d3.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注