zoukankan      html  css  js  c++  java
  • 类找不到总结java.lang.ClassNotFoundException

    转载 http://blog.csdn.net/xinghui_liu/article/details/7287662

    (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包

    (12) 使用spring 调试提示:Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV

    答:原因是:缺少.jar文件

    至于是缺少standard.jar还是servlet-api.jar还是两个都缺那就看你引了哪个了。

    (13) java.lang.NoSuchMethodError: com.microsoft.util.UtilByteOrderedDataWriter.writeInt32(I)V

    sqlserver2000的三个jar包出问题了,注意版本对应,看tomcat的log日志,一切问题就好解决了

    (14)java.lang.NoClassDefFoundError:org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

    缺少的两个jar包:aspectjrt.jar;aspectjweaver.jar ,这是springAOP所依赖的包

  • 相关阅读:
    迭代器,可迭代对象,生成器区别
    七大经典排序算法
    二叉排序树的插入、生成、删除及查找操作
    二分查找(折半查找)
    顺序查找
    二叉树的创建、遍历及应用
    (原创)一些常见小程序(C)
    顺序队列
    二叉树的创建
    Vue开源项目库汇总
  • 原文地址:https://www.cnblogs.com/R4mble/p/7834168.html
Copyright © 2011-2022 走看看