zoukankan      html  css  js  c++  java
  • J2SE/SSH 结构遇到莫名错误收集持续更新

    1. MyEclipse 7.5自带 Hibernate 3.2 Core中asm.jar 和 Spring 2.5 Aop中 asm2.1.3.jar 冲突,导致无法加载 hbm.xml文件, 体现错误是:

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)

    2.MyEclipse 7.5自带 Hibernate 3.2 Core中 commons-collections-2.1.1.jar 版本 比 spring2.5 中要求的版本低, 下载commons-collections.jar 3.1替换即可, 体现错位信息:

    Error creating bean with name 'velocityConfigurer' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap

    3.jdk1.5 与 tomcat5.0之间的关于 TransformerFactoryImpl 类的造成冲突, 下载 xalan系列jar包替换 <TOMCAT-HOME>\common\endorsed 下的xercesImpl.jar和xml-apis.jar, 体现错误信息:

    Exception starting filter struts2
    javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found

  • 相关阅读:
    2-反向调试
    1-断点调试
    gdb基础用法
    protobuf学习手册(上)
    1024 科学计数法 (20 分)
    1023 组个最小数 (20 分)
    1018 锤子剪刀布 (20 分)
    1015 德才论 (25 分)
    1020 月饼 (25 分)
    1019 数字黑洞 (20 分)
  • 原文地址:https://www.cnblogs.com/yinpengxiang/p/1580921.html
Copyright © 2011-2022 走看看