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

  • 相关阅读:
    Node.js基础学习一之Get请求
    Node.js学习准备篇
    如何在eclipse添加SVN菜单
    Java泛型的好处
    mybatis多数据源配置
    Python map() 函数
    python split()使用方法
    pythom os 模块
    深浅copy
    小数据池
  • 原文地址:https://www.cnblogs.com/yinpengxiang/p/1580921.html
Copyright © 2011-2022 走看看