-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hibernate.cfg.xml NOT FOUND
PostPosted: Wed Apr 16, 2008 4:27 am 
Beginner
Beginner

Joined: Tue Aug 29, 2006 8:08 am
Posts: 34
The problem is that I have a server/client application and only in the server side persistence
with hibernate is done. I have properly added to the classpath the hibernate.cfg.xml on the server side (as proved for most persistence [r/w] operations which go fine). I use a concrete
class to manage users of my app and any read operation retrieves all users right and pass it ok to the client side. However, whenever i try to add new user (write to DB), from the client side,
the same way I do when reading (rmi), it fails saying /hibernate.cfg.xml not found.

Going insane at the moment, why my server is able to read as required from client, but whenever i demand, upon the same object, a write operation it says hibernate.cfg.xml not found ?!?!!?

Tnx a lot.

Hibernate version: 3.2.5ga

Mapping documents:N/A
All referenced as required in hibernate.cfg.xml

Full stack trace of any exception that occurs:
******ABOUT TO GET HIBERNATE SESSION
16-abr-2008 9:13:14 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
16-abr-2008 9:13:14 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
Initial SessionFactory creation failed.org.hibernate.HibernateException: /hibernate.cfg.xml not found


Top
 Profile  
 
 Post subject: subject: hibernate.cfg.xml NOT found but it is in PATH
PostPosted: Wed Apr 16, 2008 7:35 am 
Beginner
Beginner

Joined: Tue Aug 29, 2006 8:08 am
Posts: 34
it was just to write a more proper subject


Top
 Profile  
 
 Post subject: I got it
PostPosted: Mon May 19, 2008 10:28 am 
Beginner
Beginner

Joined: Tue Aug 29, 2006 8:08 am
Posts: 34
Just for people who might be having same trouble (although I haven't got any reply to this
thread ... ), it was a matter of RMI basis more than Hibernate.

Do never have a class implementing java.io.Serializable if it really does not have to be passed
from server to client ..... as simple or stupid (me) as that...


Top
 Profile  
 
 Post subject: Mapping of hibernate.cfg.xml
PostPosted: Mon May 19, 2008 2:16 pm 
Newbie

Joined: Mon May 19, 2008 1:50 pm
Posts: 2
Location: Hyderabad
Go to hibernate.cfg.xml configure. From there you add hibernate.cfg.xml.
After that it will take properly.

_________________
Arindam Ghosh


Top
 Profile  
 
 Post subject: what r u talking about?
PostPosted: Thu May 22, 2008 4:44 am 
Beginner
Beginner

Joined: Tue Aug 29, 2006 8:08 am
Posts: 34
Man I don't mean to be rude at all but, what are you talking about?
Your explanation is like a non-ending recursive function !?!?!
Any way, don't bother, read my posts/queries above and u'll see it's solved.


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