With a wicket door, where does the hibernate.cfg.xml file go?

I'm new to Wicket and Hibernate and can't get past the "org.hibernate.HibernateException: /hibernate.cfg.xml not found" error. I've put this file anywhere you can imagine, but I'm still stuck. Where exactly does this file go and / or I can't find the wicket configuration setting anywhere?

0


source to share


4 answers


Make sure the hibernate.cfg.xml file is in the classpath.



+2


source


If you're just getting started with Wicket and Hibernate, you might be interested in the Bindings Tool .



0


source


I would place hibernate, cfg.xml in / WEB-INF folder of your application.

0


source


general form for connecting these technologies with springframework, take a look at http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/

and also springframework will help you with lazy load exception and transaction management

0


source







All Articles