-->
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: file not found
PostPosted: Fri Jul 23, 2004 9:12 am 
Beginner
Beginner

Joined: Mon Jul 19, 2004 4:55 am
Posts: 34
Hello,
I have a problem with hibernate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 24, 2004 12:23 pm 
Beginner
Beginner

Joined: Wed Jul 21, 2004 12:28 pm
Posts: 27
Location: New York
the hbm.xml file have to be on the classpath. It seems from your post that you have them rooted at WEB-INF, rather than at WEB-INF/classes

so you should have them like this when you deploy them to the server:
Code:
-WEB-INF
   web.xml
   -classes
      hibernate.cfg.xml
      hibernate.properties
      -myPackage
         -myPackage2
            User.class
            User.hbm.xml


since it is the classes directory that will be on your classpath in the servlet container.

Note: '-' in front of the directory name means expanded directory.

_________________
Thanks,
Alex


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.