Could not parse mapping document from .hbm.xml

261 views
Skip to first unread message

Abhishek Mathur

unread,
Nov 11, 2011, 8:06:31 AM11/11/11
to google-cloud...@googlegroups.com
Hi,

I am getting "org.hibernate.InvalidMappingException: Could not parse mapping document from resource " error while building session factory using hibernate.cfg.xml in my appengine application. I have attached the .hbm.xml file and its corresponding table structures. The same mapping file with same database on local mysql server is working on JBOSS.
I have got similar errors before in appengine in other mapping files but after replacing but they had the data-type issues like mapping of BIGINT, which, after doing relevant changes, worked.
But in the case of this mapping file, I am not sure what is causing the exception. Any clue would be great.

Thanks,
Abhishek



HBM_XML.txt
Tables.txt

Ikai Lan

unread,
Nov 13, 2011, 7:00:26 PM11/13/11
to google-cloud...@googlegroups.com
It's not obvious to me where the error is coming from, but if I had to guess, it's based on where you are putting this file. Where are you putting hibernate.cfg.xml in your application?

Can you get this working with a simple example to eliminate the possibility of something else breaking this?

--
Ikai

Abhishek Mathur

unread,
Nov 13, 2011, 11:14:17 PM11/13/11
to google-cloud...@googlegroups.com
Hi Ikai,

I've resolved the problem. You are right, something else was breaking this. A deadline exceeded exception while creating the session was the root cause. When I resolved that problem, the xml problem got resolved automatically.

Thanks,
Abhishek
Reply all
Reply to author
Forward
0 new messages