Skip to Content
0
Former Member
Aug 20, 2008 at 04:21 PM

Migrating to SAP Web AS - HibernateException: Errors in named queries

12 Views

Hi folks!

We are migrating our web application to SAP Web AS (Netweaver CE SR5) but we are having some problems with hibernate: org.hibernate.HibernateException: Errors in named queries (see the stack below).

It´s important to point out that this same application runs fine in Tomcat 5.5

I followed the instructions in the following weblog but the problem continues:

I also have read the following posts:

I don´t know if our application-service.xml file is correctly configured (I used an example found in the SDN) so I will paste it below:

(SessionFactoryImpl.java:364)

at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)

at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:816)

at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:734)

at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1333)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1299)

... 159 more