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 that file in every location imagineable but I'm still stuck. Where exactly does that file go and/or am I missing a wicket file config setting somewhere?
我是Wicket和Hibernate的新手,无法通过“org.hibernate.HibernateException:/hibernate.cfg.xml not found”错误。我把这个文件放在每个可以想象的位置,但我仍然卡住了。该文件到底在哪里和/或我错过了某个地方的wicket文件配置设置?
4 个解决方案
#1
2
Ensure hibernate.cfg.xml file placed in classpath.
确保将hibernate.cfg.xml文件放在classpath中。
#2
0
If you're just starting with Wicket and Hibernate, you may be interested in the Databinder toolkit.
如果您刚刚开始使用Wicket和Hibernate,您可能会对Databinder工具包感兴趣。
#3
0
I'd place the hibernate,cfg.xml in the /WEB-INF folder of your application.
我将hibernate,cfg.xml放在应用程序的/ WEB-INF文件夹中。
#4
0
the common form to connect that technologies is with springframework, take a look http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/
连接这些技术的常见形式是springframework,看看http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/
and also springframework help you with lazy load exception, and transaction management
springframework还可以帮助您解决延迟加载异常和事务管理问题
#1
2
Ensure hibernate.cfg.xml file placed in classpath.
确保将hibernate.cfg.xml文件放在classpath中。
#2
0
If you're just starting with Wicket and Hibernate, you may be interested in the Databinder toolkit.
如果您刚刚开始使用Wicket和Hibernate,您可能会对Databinder工具包感兴趣。
#3
0
I'd place the hibernate,cfg.xml in the /WEB-INF folder of your application.
我将hibernate,cfg.xml放在应用程序的/ WEB-INF文件夹中。
#4
0
the common form to connect that technologies is with springframework, take a look http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/
连接这些技术的常见形式是springframework,看看http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/
and also springframework help you with lazy load exception, and transaction management
springframework还可以帮助您解决延迟加载异常和事务管理问题