# InvalidMappingException after upgrade to Hibernate 5.2.12

**URL:** <https://discourse.hibernate.org/t/invalidmappingexception-after-upgrade-to-hibernate-5-2-12/3733>\
**Category:** Hibernate ORM\
**Created:** [February 11, 2020, 9:14am UTC](https://discourse.hibernate.org/t/invalidmappingexception-after-upgrade-to-hibernate-5-2-12/3733 "2020-02-11T09:14:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrinivas.mujumdar](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@shrinivas.mujumdar](https://discourse.hibernate.org/u/shrinivas.mujumdar)\
**Post date:** [February 11, 2020, 9:14am UTC](https://discourse.hibernate.org/t/invalidmappingexception-after-upgrade-to-hibernate-5-2-12/3733/1 "2020-02-11T09:14:07Z")

</div>

Hi,

I have upgraded Hibernate Framework from v3.x to v **5.2.12** in our application. During the server startup process, I am facing below error:  
`
Error creating bean with name ‘factory’ defined in ServletContext resource [/WEB-INF/dummy-path/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.boot.InvalidMappingException: Could not parse mapping document: TEST.hbm.xml (FILE)
`

This file was getting parsed perfectly fine till older version, However all of a sudden it is showing error as Could not parse mapping document.

Doctype of the document is:

class element has child tags in below order:

- **meta** attribute=“ **sync-DAO** ”  
- **meta** attribute=“ **extends** ”  
-5 **property** tags  
- **many-to-one** with **lazy** attribute = **false** and **not-found** =“ **ignore** ”  
- **set** with **inverse=“true”** and **one-to-many** nested in this **set** tag.

Not sure why this error is popping up.

Any help is highly appreciated.

Thanks in Advance,  
Shriniwas
