wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Problem while deployment with Named Queries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Problem while deployment with Named Queries" Watch "Problem while deployment with Named Queries" New topic
Author

Problem while deployment with Named Queries

Mythili Sathya
Greenhorn

Joined: Aug 04, 2008
Posts: 10
Hi All,

Am getting the below Exception when trying to deploy a Spring Hibernate application.

The Named Query am trying to load works from other environment.Is this related to any configuration problem ?
Kindly help me out to solve this.
Am getting this exception for any Named queries. Am new to Hibernate


org.hibernate.HibernateException: Errors in named queries: acctmgmt.userDAO.read
ByEmail
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
365)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1294)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession
Factory(LocalSessionFactoryBean.java:825)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPrope
rtiesSet(LocalSessionFactoryBean.java:751)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
Truncated. see log file for complete stacktrace
>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem while deployment with Named Queries