I also got this kind of error when I started with hibernate. Now, I got it working.
My experience is that the error message is quite confusing, but this only means that hibernate is not configured well, so it tries to get something from some strange places elsewhere
You just need to make sure that your hibernate are well configured. Check the following:
- log4j.properties is in classpath
- hibernate.properties in classpath (if you use it)
- your *.hbm.xml are in your classpath (Important note: if you use package, e.g., example.Team, hibernate will look for it in example/Team.hbm.xml. So, you need to put Team.hbm.xml in example directory)
You can got log4j.properties, hibernate.properties template from hibernate package.
- Peng
|