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

  • 相关阅读:
    HDU 5714
    C++ 中的名称冲突之 "y1"
    FFT 模板
    Modular Query
    找礼物(find)(模拟)
    水流(water)(BFS)(DFS)
    单词接龙(dragon)(BFS)
    细菌(disease) (位运算)(状态压缩)
    Diamond Collector (动态规划)
    超级素数(sprime) (BFS)
  • 原文地址:https://www.cnblogs.com/yinpengxiang/p/1580921.html
Copyright © 2011-2022 走看看