Hi,
I'm developing a web application that uses hibernate for database access. The servlet containe is Tomcat 5.0.5 and mysql 4.1.12 . I've created a few backend classes that do all the work of adding/removing and doing all the db stuff using hibernate.
Can anyone tell me where should i place the hibernate.hbm.xml file in my web application for it to be picked up. Here's my current structure of the webapp:
Code:
myWebApp
|
--- jsps here
|
---- WEB-INF
|
---- lib - Here i've placed the library jars.
|
---- classes - Users.class. This class does the DB stuff
|
---- servlets - servlet class. This imports the Users class
My JSP calls a servlet that imports the Users class and validates a user. When I acces this JSP the action parameter passes it to the servlet that then does a user.UserExists().
the documentation says that the hibernate.hbm.xml file should be in the classpath. I've placed this file in the lib directory, but it doesn't help.
Can anyone please let me know what the problem is ?