Forums Register Login

Initial SessionFactory creation exception with RAD

+Pie Number of slices to send: Send
hi, i am using RAD with Sybase 11.9.x and jconn2.jar as driver and hibernate3.jar. I followed all the steps given in tutorial found on the hibernate home page.

but when i start my server, i am getting following error even though i have put hibernate.cfg.xml under JavaSource root of the websphere.

Initial SessionFactory creation failed.org.hibernate.HibernateException: /hibernate.cfg.xml not found
Initial SessionFactory creation failed.org.hibernate.HibernateException: /hibernate.cfg.xml not found
Initial SessionFactory creation failed.org.hibernate.HibernateException: /hibernate.cfg.xml not found
Initial SessionFactory creation failed.org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml

Can anybody let me know problem?
+Pie Number of slices to send: Send
the hibernate.cfg.xml needs to be on the classpath, not in the source tree.

use the search function of the forum or google. actualy you should have done this before....

pascal
+Pie Number of slices to send: Send
yes, in RAD JavaSource will be on classpath by default. Even after this, I was getting the error.

Actually in the cfg.xml file,

<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

I had removed "http://hibernate.sourceforge.net/" and had put actual dtd in the same folder as I was getting 'Unable to connect to host: http://hibernate.sourceforge.net' error in the RAD IDE.

Now I added it again to the dtd, and its working now.

But IDE shows 'Unable to connect to host: http://hibernate.sourceforge.net'

Can you tell what is the problem with RAD IDE?
+Pie Number of slices to send: Send
If I remember RAD correctly you need to configure whether to allow it to look up DTDs over the network somewhere. Unfortunately I no longer have it installed so can't really help. Instead (since its not really a Hibernate question) I'll move this to the IDE forum, see if anyone else can help.
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2110 times.
Similar Threads
Initial SessionFactory creation failed.java.lang.ExceptionInInitializerError
Problem with Initializing session Factory in Hibernate
Can i mix hibernate configuration data in properties and hibernate.cfg.xml files
plzzzzz solve this
/hibernate.cfg.xml not found
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:41:19.