-->
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.  [ 6 posts ] 
Author Message
 Post subject: probelm with hibernate and a tomcat servlet
PostPosted: Wed Jul 21, 2004 4:43 am 
Beginner
Beginner

Joined: Mon Jul 19, 2004 4:55 am
Posts: 34
hello,
I use Tomcat 5, Eclipse 3, mySQL, and hibernate.
I try to persist my data if I use a "Main" method, but if I put the same code in a servlet, I have an Exception.
Code:
Error reading ressource: package.User.hbm.xml

I put it with my class files but it seem don't find it.
there is something special to configure under tomcat or under hibernate to run my application with a servlet?
thanx a lot for your help..


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 21, 2004 8:07 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
try to follow the tutorial with tomcat embedded with the reference guide.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 21, 2004 8:09 am 
Beginner
Beginner

Joined: Mon Jul 19, 2004 4:55 am
Posts: 34
I manage to use a servlet, I manage to use hibernate in a "Main


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 21, 2004 8:17 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
there is nothing specific about servlet...
if your hmb.xml are well done and in the classpath... it works!

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 21, 2004 8:47 am 
Beginner
Beginner

Joined: Mon Jul 19, 2004 4:55 am
Posts: 34
it's run....
I don't know how but it's run !
thnax for your help.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 21, 2004 8:50 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
you may have done some file copy/paste outside eclipse... he don't like that, or if you do it, don't forget to refresh your project

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.