Hello all,
I am using hibernate version 3. To load the config from the hibernate.cfg.xml, I using this strategy :
sessionFactory = new Configuration().configure($$location of the hibernate config file$$).buildSessionFactory();
I am getting this exception :
An I/O error occurred while parsing file: /app/config/hibernate.cfg.xml; nested exception is: java.lang.Exception: An I/O error occurred while parsing file: /app/config/hibernate.cfg.xml
This issue is seen on some of my machines and some machines it works smoothly. Is it because of some DTD issue. Hibernate is already on the classpath.
Is this a classpath issue? I have tried the other way of initializing the sessionFactory (placing the hibernate config file on the classpath), this approach works fine for me. But at my company we dont want to go by thpalcing the config file on the classpath, so stuck with the I/O parse error.
Any help/ clues will be helpful.
Thanks
Shobhana
_________________ Thanks
|