Hi I am using Hibernate 3.2.5 for the first time with Spring 2.5 / Srping Web Flow 2.0.
My direct table / views reading is working fine. When it comes to call a stored proc, I am getting the issue.
I am getting the following exception, when trying to deploy to Weblogic 9.2 Server.
Appreciate help.
Thanks
Code:
<Sep 11, 2008 3:32:52 PM EDT> <Error> <Deployer> <BEA-149265> <Failure occured in the execution of deployment request with ID '1221161524123' for task '2'. Error is: 'weblogic.application.ModuleException: '
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:891)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
Truncated. see log file for complete stacktrace
org.hibernate.HibernateException: Errors in named queries: menuSummaryReportData_sp
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:365)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
Truncated. see log file for complete stacktrace
>
My Service class:
Code:
logger.debug("Hibernate Session Object is available");
List<MenuSummaryReportData> menuSummaryReportList = sessionObj
.getNamedQuery("menuSummaryReport_sp").setParameter(
"asset_id", mt_asset_id).setParameter("start_date",
startDateTime)
.setParameter("end_date", endDateTime).list();
logger.debug("size of list: " + menuSummaryReportList.size());
sessionObj.close();
My Hibernate mapping file ( Reports.hbm.xml)
Code:
<sql-query name="menuSummaryReportData_sp" callable="true">
<return alias="menuSummaryReportData"
class="MenuSummaryReportData">
<return-property name="actionDate" column="ACTION_DATE">
</return-property>
<return-property name="action" column="ACTION"></return-property>
<return-property name="locations" column="LOCATIONS"></return-property>
<return-property name="sibOrder" column="SIB_ORDER"></return-property>
<return-property name="position" column="POSITION"></return-property>
<return-property name="fullPath" column="FULL_PATH"></return-property>
</return>
{?=call
MENU_REPORTS.menu_summary_report(:mt_asset_id,:start_date,:end_date)}
</sql-query>