hibernate.cfg.xml must be found in the root of the classpath when the webapp is started.
If you are using maven to build the project, put hibernate.cfg.xml in the src/main/resources directory so that when you build the war package, it will be automatically be placed in /WEB-INF/classes
If not using maven, place the file directly in your WEB-INF/classes dir
http://stackoverflow.com/questions/4934330/org-hibernate-hibernateexception-hibernate-cfg-xml-not-found
Saturday, December 17, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment