Hi All,
I am trying to write one example for spring and hibernate usage. I am getting the following error in ApplicationContext.xml.
Can you please guide me.
Error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in class path resource [spring/swh/ApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from invalid mapping
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory
************************************************************************************************************
ApplicationContext.xml
***********************************************************
Servlet Invocation
ApplicationContext ctx = new ClassPathXmlApplicationContext("/spring/swh/ApplicationContext.xml");
BeanFactory factory=(BeanFactory)ctx;
Thanks in Advance.
Regards
Kris