Skip to Content
Former Member
Jan 10, 2007 at 08:26 PM

Web Dynpro: Where put hibernate hibernate.cfg.xml?


I have seen several people asking about the place to put the config file of Hibernate, but not any conclusive answer until now...

I created a external library in WAS (I verified using Visual Admin that the lib was correctly deployed). In my Web Dynpro References -> Library Reference I add the library in the format Provider Name/Library Name: ""

<b> Where can I store the hibernate.cfg.xml?</b> I have tried put it in all web dynpro folders!


Ivan Garcia

From Brazil

<b> This is my source code:</b>

Configuration cfg = new Configuration();


<b> The error:</b>

org.hibernate.HibernateException: hibernate.conf.xml not found

at org.hibernate.util.ConfigHelper.getResourceAsStream(

at org.hibernate.cfg.Configuration.getConfigurationInputStream(

at org.hibernate.cfg.Configuration.configure(

I have read all forum topics about this, including:

Where to put config files in webdynpro ?

Problem in placing hibernate.cfg.xml



How to add external jar in web dynpro without going for DC

Web Dynpro References

Using External Library in Web Dynpro - Error

Deploy external jar to WAS 6.40