错误如下
[show] org.hibernate.DuplicateMappingException: Duplicate class/entity mapping
com.gdnit.corporateweb.sysadmin.model.DoubtAdviceorg.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'companyController': Injection of autowired dependencies
failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private com.gdnit.corporateweb.sysadmin.service.CompanyService
com.gdnit.corporateweb.sysadmin.controller.CompanyController.companyService;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'companyServiceImpl': Injection of autowired
dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private com.gdnit.corporateweb.sysadmin.dao.CompanyDao
com.gdnit.corporateweb.sysadmin.service.impl.CompanyServiceImpl.companyDao;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'companyDao' defined in ServletContext resource
[/WEB-INF/config/application-context.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 ServletContext resource
[/WEB-INF/config/application-context.xml]: Invocation of init method failed;
nested exception is org.hibernate.DuplicateMappingException: Duplicate
class/entity mapping com.gdnit.corporateweb.sysadmin.model.DoubtAdvice
应该是hibernate方面的问题
[show] org.hibernate.DuplicateMappingException: Duplicate class/entity mapping
com.gdnit.corporateweb.sysadmin.model.DoubtAdviceorg.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'companyController': Injection of autowired dependencies
failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private com.gdnit.corporateweb.sysadmin.service.CompanyService
com.gdnit.corporateweb.sysadmin.controller.CompanyController.companyService;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'companyServiceImpl': Injection of autowired
dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private com.gdnit.corporateweb.sysadmin.dao.CompanyDao
com.gdnit.corporateweb.sysadmin.service.impl.CompanyServiceImpl.companyDao;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'companyDao' defined in ServletContext resource
[/WEB-INF/config/application-context.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 ServletContext resource
[/WEB-INF/config/application-context.xml]: Invocation of init method failed;
nested exception is org.hibernate.DuplicateMappingException: Duplicate
class/entity mapping com.gdnit.corporateweb.sysadmin.model.DoubtAdvice
应该是hibernate方面的问题
解决方案 »
- 小弟菜鸟,请问怎么实现用js脚本指定插入的表格行或列的颜色?代码中的写法不正确
- 跪求java web项目
- 在线等,Unable to load class for JSP
- 用javascript怎么给jsp里面的对象赋值啊?
- 怎么中文比较?
- 怎样实现在客户浏览器中点击一个联接产生在客户机中用记事本打开服务器上的一个文本文件的动作?
- TOMCAT5.0 下的JDBCRealm 与SQL Server2000为什么不能正确使用
- 新手问题:怎么找不到sum.jdbc.odbc.JdbcOdbcDriver?
- JBuilder和tomcat的问题!
- 多个事务使用jdbc连接池并发操作表出现脏数据,求搭救!
- 我在用axis2的RPCServiceClient调用webservice接口时报错找不到类
- java中如何取得ajax post提交的值
<value>classpath*:/**/*.hbm.xml</value>
这样在resin下不行,要全路径