S2SH3配置错误

1.   严重: Exception sending context initializedevent to listener instance of class

 

org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'sessionFactory' defined in class path resource[applicationContext.xml]: Invocation of init method failed; nested exception isorg.hibernate.MappingException: Association references unmapped class:OutStroege

Caused by: org.hibernate.MappingException:Association references unmapped class: OutStroege

解决方法:

检查所有与这张表有关联的 .hbm.xml 的CLASS路径是否正确。

如:

<hibernate-mappingpackage="com.yt.entity">

 

2.  Caused by:

org.xml.sax.SAXParseException: Element type "prpperty" must be declared.

配置文件中属性错误,应该是property

 

3.  Caused by:

org.xml.sax.SAXParseException: Documentroot element "hibernate-maaping", mustmatch DOCTYPE root "hibernate-mapping".

    Hbm.xml配置文件中<hibernate-mapping >属性拼写错误。

 

 

4.  Caused by:

 org.dom4j.DocumentException: Error on line 15 of document : The element type "hibernate-mapping" must be terminated bythe matching end-tag "</hibernate-mapping>". Nested exception:The element type "hibernate-mapping" must be terminated by thematching end-tag "</hibernate-mapping>".

配置文件hbm.xml中前后不匹配< hibernate-mapping >< hibernate-maaping />

 

5.   Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for goodsname in classcom.yt.entity.InStroege

InStroege.java中的属性和InStroege.hbm.xml中的属性没有对起(本处错误:InStroege.java中是goodsname而InStroege.hbm.xml中是goodsName)。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值