-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: hibernate.hbm.xml not found
PostPosted: Fri May 14, 2004 3:45 am 
Newbie

Joined: Tue May 11, 2004 4:44 am
Posts: 5
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 ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 14, 2004 3:59 am 
Regular
Regular

Joined: Wed Apr 21, 2004 10:57 am
Posts: 62
Location: Hasselt, Belgium
It should be in the /classes directory. Or in the /src => compiles directly in the /classes. ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.