cancel
Showing results for 
Search instead for 
Did you mean: 

Using Hibernate with WAS

Former Member
0 Kudos

Hi,

I've been trying to port an application from Apache to Netweaver WAS. We use Hibernate. I'm getting a null pointer in reference to the Hibernate session. It seems that Hibernate is not loading properly. I'm wondering if it has to do with the location of the cfg.xml files. They were under WEB/INF (which is where Apache wants them) but I've tried putting them under /Classes and that doesn't work either. Any help or ideas appreciated.

thanks,

LG

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I've been using Hibernate on SAP Web AS as well.

I put the hibernate.cfg.xml file under WEB-INF/classes and the ***.hbm.xml files in the /source at the same location as the corresponding java class.