Reputation: 1852
Where shall I put the configuration file (hibernate.hbm.xml) when I deploy webapps (JSF 2.0) using Tomcat 7.0?
It works when I place it in WEB-INF/classes/ but is that the "standard" path? Where do you place it?
Best regards
Upvotes: 3
Views: 2592
Reputation: 14061
It should be in the root of the classpath. If you have two directories in the classpath, hibernate.cfg.xml can be in any of them. For web applications, the root of the classpath is WEB-INF/classes.
Upvotes: 4