tomcat启动报错

来源:百度知道 编辑:UC知道 时间:2024/06/07 15:38:45
严重: 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 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring-config.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: org.aa.bean.News column: usersid (should be mapped with insert="false" update="false")
Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: org.aa.bean.News column: usersid (should be mapped with insert="false" update="false")

看了一下 你给的报错信息 应该是在你的hibernate里边的映射文件出了错误 才导致你编写的spring的初始化错误 ,仔细看看配置文件 中对于org.aa.bean.News的映射

映射文件org.aa.bean.News.hbm.xml中的配置有问题,尤其是usersid的配置是不是有问题