本文主要是介绍程序在tomcat运行正常,但部署到websphere会启动失败(org.hibernate.InvalidMappingException: Could not parse mapping doc),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
报错信息:
Context initialization failed
Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/config/application-context.xml]: Invocation of init method failed;
nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
错误原因:配置文件出错。
使用Hibernate Tools 4.3.1.Final自动生成的*.hbm.xml文件中,文档类型(DOCTYPE )有问题
这篇关于程序在tomcat运行正常,但部署到websphere会启动失败(org.hibernate.InvalidMappingException: Could not parse mapping doc)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!