如题,原系统是spring2.5.6+hibernate3.3.2,现在将spring2.5.6改用spring4.1.4,经过一番简单的修改(以使编译通过),
然后,启动Tomcat7时就报错了:
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'cryptoStreamProvider' defined in class path resource [applicationContext.xml]: Cannot create inner bean 'com.astasys.dms.coeus.services.io.crypto.SecretKeyFactoryBean#396a1a1f' of type [com.astasys.dms.coeus.services.io.crypto.SecretKeyFactoryBean] while setting bean property 'secretKey';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.astasys.dms.coeus.services.io.crypto.SecretKeyFactoryBean#396a1a1f' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'emailSender' while setting bean property 'mailSender';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emailSender' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'fileActionFacade' while setting bean property 'fileActionFacade';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileActionFacade' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'genericFacade' while setting bean property 'genericFacade';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'genericFacade' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'daoInstance' while setting bean property 'hierarchicalNodeDao';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoInstance' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [hibernate.xml]: Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.hibernate.cfg.Configuration]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
...