org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commonDAO' defined in file [C:\Program Files\apache-tomcat-6.0.30\webapps\ROOT\WEB-INF\classes\config\spsystem\spring\applicationcontext-common.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in file [C:\Program Files\apache-tomcat-6.0.30\webapps\ROOT\WEB-INF\classes\config\spsystem\spring\applicationcontext-resource.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 file [C:\Program Files\apache-tomcat-6.0.30\webapps\ROOT\WEB-INF\classes\config\spsystem\spring\applicationcontext-resource.xml]: Invocation of init method failed; nested exception is net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
这个是什么错误呀,是不是asm-3.2.jar与asm-commons-3.2.jar包冲突了呀,好像是哪个包冲突了的,要把旧的版本的包删掉,
你用的是不是Spring2.0?如果是的话初步判定是jar包冲突的问题
请看链接http://sech.iteye.com/blog/137057一楼的回复
Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'
初步看是:你bean注入有问题。
注入commonDAO 出现问题。
sessionFactory 创建失败了 :P