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

相关文章:

  • 2021-12-21
  • 2021-11-05
  • 2021-07-07
  • 2022-01-18
  • 2022-01-16
  • 2021-08-29
  • 2021-06-22
  • 2021-11-25
猜你喜欢
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-01-02
  • 2021-12-23
  • 2021-04-16
相关资源
相似解决方案