现在的位置: 首页 > 综合 > 正文

Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]异常

2013年04月26日 ⁄ 综合 ⁄ 共 1019字 ⁄ 字号 评论关闭

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'departmentDao' defined in class path resource [applicationContext-import-service.xml]: Cannot resolve reference to bean 'hibernateTemplate' while setting bean property
'hibernateTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [applicationContext-service.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 [applicationContext-service.xml]: Invocation of init method
failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]

缺少javassist.jsr包

如果使用maven可以这样加:

<dependency>
            <groupId>javassist</groupId>
            <artifactId>javassist</artifactId>
            <version>3.8.0.GA</version>
</dependency>

抱歉!评论已关闭.