当前位置:编程学习 > JAVA >>

ssh框架

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [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.NoSuchMethodError: 是在搭建ssh框架时出的错 --------------------编程问答-------------------- 从这里看好像是少包了,或者是包有冲突产生的异常信息。 --------------------编程问答-------------------- 估计是包的问题!
版本冲突 --------------------编程问答-------------------- 你是不是用的是hibernate4?如果是,把applicationContext.xml中的配置为hibernate4的地方改成hibernate3试试。通常在sessionFactory,transactionManager这两个地方。 --------------------编程问答-------------------- 我用的是hibernate3.1+spring2.5+struts2.1
补充:Java ,  Web 开发
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,