部署jbpm applicaton

时间:2019-03-07 22:58:46

标签: jbpm

我是JBPM的新手,并尝试在JBoss EAP 7上部署作为教程的一部分找到的Web应用程序。我遇到了错误:

  

命名查询中的错误:TasksAssignedAsPotentialOwnerByGroup:   org.hibernate.QueryException:无法解析属性:名称:   org.jbpm.services.task.impl.model.TaskImpl [选择不同的新   org.jbpm.services.task.query.TaskSummaryImpl(t.id,t.name,t.subject,   t.description,t.taskData.status,t.priority,   t.taskData.actualOwner.id,t.taskData.createdBy.id,   t.taskData.createdOn,t.taskData.activationTime,   t.taskData.expirationTime,t.taskData.processId,   t.taskData.processInstanceId,t.taskData.parentId,   来自的t.taskData.deploymentId,t.taskData.skipable)   org.jbpm.services.task.impl.model.TaskImpl加入   t.peopleAssignments.potentialOwners潜在所有者t.archived =   0和t.taskData.actualOwner = null,且t.taskData.status   (“已创建”,“就绪”,“保留”,“进行中”,“已暂停”)和   potentialOwners.id =:groupId,按t.id DESC顺序排列]           在org.hibernate.QueryException.generateQueryException(QueryException.java:120)           在org.hibernate.QueryException.wrapWithQueryString(QueryException.java:103)           在org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:218)           在org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:142)           在org.hibernate.engine.query.spi.HQLQueryPlan。(HQLQueryPlan.java:115)           在org.hibernate.engine.query.spi.HQLQueryPlan。(HQLQueryPlan.java:76)           在org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:150)           在org.hibernate.internal.NamedQueryRepository.checkNamedQueries(NamedQueryRepository.java:155)           在org.hibernate.internal.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:796)           在org.hibernate.internal.SessionFactoryImpl。(SessionFactoryImpl.java:492)           在org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422)           在org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880)           在org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)           在org.jboss.as.jpa.service.PersistenceUnitServiceImpl $ 1 $ 1.run(PersistenceUnitServiceImpl.java:167)           在org.jboss.as.jpa.service.PersistenceUnitServiceImpl $ 1 $ 1.run(PersistenceUnitServiceImpl.java:125)           在org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:640)           在org.jboss.as.jpa.service.PersistenceUnitServiceImpl $ 1.run(PersistenceUnitServiceImpl.java:209)           在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)           在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)           在java.lang.Thread.run(Thread.java:748)           在org.jboss.threads.JBossThread.run(JBossThread.java:320)上由​​以下原因引起:org.hibernate.QueryException:无法解析属性:   名称:org.jbpm.services.task.impl.model.TaskImpl           在org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:62)           在org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:56)           在org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1855)           在org.hibernate.hql.internal.ast.tree.FromElementType.getPropertyType(FromElementType.java:393)           在org.hibernate.hql.internal.ast.tree.FromElement.getPropertyType(FromElement.java:504)           在org.hibernate.hql.internal.ast.tree.DotNode.getDataType(DotNode.java:660)           在org.hibernate.hql.internal.ast.tree.DotNode.prepareLhs(DotNode.java:264)           在org.hibernate.hql.internal.ast.tree.DotNode.resolve(DotNode.java:204)           在org.hibernate.hql.internal.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:109)           在org.hibernate.hql.internal.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:104)           在org.hibernate.hql.internal.ast.tree.DotNode.resolveSelectExpression(DotNode.java:722)           在org.hibernate.hql.internal.ast.HqlSqlWalker.resolveSelectExpression(HqlSqlWalker.java:1045)           在org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectExpr(HqlSqlBaseWalker.java:2291)           在org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.constructor(HqlSqlBaseWalker.java:2649)           在org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectExpr(HqlSqlBaseWalker.java:2358)           在org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectExprList(HqlSqlBaseWalker.java:2228)           在org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectClause(HqlSqlBaseWalker.java:1499)           在org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:583)           在org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:311)           在org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:259)           在org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:262)           在org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:190)           ...另外18个

我验证了在persistence.xml中定义了TaskImpl类。这些命名查询在Taskorm.xml中定义。 有什么建议吗?

1 个答案:

答案 0 :(得分:0)

发现了问题,并在此处发布,以使他人受益。在jbpm 6和7之间更改了TaskImpl类。我在对v6 jar文件使用v7 Taskorm.xml