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

你可能感兴趣的:(J2SE)