请教大牛问题,SSH框架整合jBpm报错HQL命名错误 Errors in named queries: GraphSession.deleteJobsForP

yangyi22 2013-02-22 07:58:24

请教各位大牛解决问题,SSH框架整合jBpm报错HQL命名错误 Errors in named queries: GraphSession.deleteJobsForProcessInstance

详细如下
用jBpm-jpdl3.2.8与Spring2.0,Stuts-1.2.9,Hibernate3.2.3.ga整合,在加载到org/jbpm/db/hibernate.queries.hbm.xml时报异常,检查了HQL语句并没有问题,也采用了hibernate3.0的查询翻译器,hibernate版本也换过都不能解决问题

hibernateProperties配置如下:
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.generate_statistics">false</prop>
<prop key="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</prop>
<prop key="hibernate.jdbc.batch_size">0</prop>
<prop key="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</prop>
</props>
</property>

0 0 请教大神问题,SSH框架整合jBpm报错HQL命名错误 Errors in named queries: GraphSession.deleteJobsForP0
[size=small][/size]请教各位大神解决问题,SSH框架整合jBpm报错HQL命名错误 Errors in named queries: GraphSession.deleteJobsForProcessInstance

详细如下:
用jBpm-jpdl3.2.8与Spring2.0,Stuts-1.2.9,Hibernate3.2.3.ga整合,在加载到org/jbpm/db/hibernate.queries.hbm.xml时报异常,检查了HQL语句并没有问题,也采用了hibernate3.0的查询翻译器,hibernate版本也换过都不能解决问题

hibernateProperties配置如下:
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.generate_statistics">false</prop>
<prop key="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</prop>
<prop key="hibernate.jdbc.batch_size">0</prop>
<prop key="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</prop>
</props>
</property>


报错如下:

13/02/21 09:39:56 Error parsing application-server config file: Error creating bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/app-config-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/app-config-context.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Errors in named queries: GraphSession.deleteJobsForProcessInstance, JobSession.suspendJobs, JobSession.findRepeatingTimersByName, GraphSession.findAllProcessDefinitionVersions, GraphSession.findAllProcessInstancesForDefinition, GraphSession.findAllRunningProcessInstances, GraphSession.findAllProcessInstances, JobSession.countDeletableJobsForProcessInstance, TaskMgmtSession.findTaskInstancesByIds, JobSession.deleteTimersByName, GraphSession.findTaskInstancesForProcessInstance, GraphSession.findAllProcessInstanceIdsForDefinition, JobSession.getFirstDueJob, LoggingSession.findLogsByToken, GraphSession.findTokensForProcessVersionInNode, GraphSession.AllProcessNames, GraphSession.findAllSwimlaneNames, JobSession.findJobsByToken, TaskMgmtSession.findTaskInstancesByActorId, GraphSession.findProcessInstanceByKey, GraphSession.findAllProcessInstancesWithProcessName, GraphSession.NumberOfActiveProcessInstances, TaskMgmtSession.findPooledTaskInstancesByActorId, GraphSession.calculateAverageTimeByNode, JobSession.getFirstAcquirableJob, TaskMgmtSession.findTaskInstancesByTokenId, GraphSession.findSubProcessInstances, JobSession.findJobsWithOverdueLockTime, GraphSession.findProcessDefinitionByNameAndVersion, TaskMgmtSession.findOpenTasksOfProcessInstance, GraphSession.findLogsForProcessInstance, JobSession.findRepeatingTimersForProcessInstance, JobSession.findExclusiveJobs, GraphSession.findLatestProcessDefinitions, JobSession.deleteJobsForProcessInstance, JobSession.getFirstDueJobExcludingMonitoredJobs, JobSession.resumeJobs, GraphSession.NumberOfDeployedProcesses, GraphSession.findAllRunningProcessInstancesWithProcessName, GraphSession.findActiveNodesByProcessInstance, TaskMgmtSession.findPooledTaskInstancesByActorIds, GraphSession.findTokensForProcessInNode, GraphSession.findLatestProcessDefinitionQuery, GraphSession.findReferencingProcessStates, TaskMgmtSession.findTaskInstancesByProcessInstance, TaskMgmtSession.findTaskForNode, TaskMgmtSession.findTaskInstancesByActorIds, GraphSession.findAllProcessDefinitions
...全文
80 回复 点赞 打赏 收藏 举报
写回复
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
相关推荐
发帖
Java EE
加入

6.7w+

社区成员

J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
申请成为版主
帖子事件
创建了帖子
2013-02-22 07:58
社区公告
暂无公告