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
|