您的位置:首页 > 移动开发

Duplicate class/entity mapping 报错的问题

2012-02-10 11:19 281 查看
Could not parse configuration: /hibernate.cfg

 

Caused by: org.hibernate.DuplicateMappingException: Duplicate class/entity mapping

 

Caused by: org.dom4j.DocumentException: FWK005 parse may not be called while pa

sing. Nested exception: FWK005 parse may not be called while parsing.

 

这些错误的解决方法:

 

总结:

 

HibernateSessionFactory 中 getSession() 方法加一个 synchronized 就可以实现

文章出处:飞诺网(www.diybl.com):http://www.diybl.com/course/3_program/java/javajs/200797/70121.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  exception nested
相关文章推荐