If you get below exception in your struts hibernate application
org.hibernate.InvalidMappingException: Could not parse mapping document from resource ujjwal/home/homes.hbm.xml
The reason behind this exception could be
1) wrong package name in hibernate.cfg.xml file
2) wrong package name in homes.hbm.xml
for example
<class name="ujjwal.homes.Homes" table="homes" schema="myhomes">
As you can see in above example, we are having package name ujjwal.homes.Homes under class name which is totally incorrect, it should be ujjwal.home.homes.Homes instead.
If you still face this issue, feel free to comment
Thanks,
Ujjwal Soni