我是JBPM的新手,并试图在JBoss EAP 7上部署我作为教程的一部分找到的Web应用程序。我遇到了一个错误:
命名查询出错:TasksAssignedAsPotentialOwnerByGroup:org.hibernate.QueryException:无法解析属性:name of:org.jbpm.services.task.impl.model.TaskImpl [select distinct new 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。来自org.jbpm.services.task.impl的taskData.activationTime,t.taskData.expirationTime,t.taskData.processId,t.taskData.processInstanceId,t.taskData.parentId,t.taskData.deploymentId,t.taskData.skipable) .model.TaskImpl t join t.peopleAssignments.potentialOwners potentialOwners其中t.archived = 0和t.taskData.actualOwner = null和t.taskData.status in('Created','Ready','Reserved','InProgress',在org.hibernate.QueryException.wrapWithQueryString(QueryExcept)上的org.hibernate.QueryException.generateQueryException(QueryException.java:120)中的'Suspended')和potentialOwners.id =:groupId order by t.id DESC] ion.java:103)org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:218)org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:142)at org位于org.hibernate.engine.query.spi.QueryPlanCache的org.hibernate.engine.query.spi.HQLQueryPlan。(HQLQueryPlan.java:76).hibernate.engine.query.spi.HQLQueryPlan。(HQLQueryPlan.java:115)。 .getHQLQueryPlan(QueryPlanCache.java:150)位于org.hibernate.internal的org.hibernate.internal.NamedQueryRepository.checkNamedQueries(NamedQueryRepository.java:155)org.hibernate.internal.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:796)。 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)at at org.jboss.as.jpa.service.PersistenceUnitServiceImpl $ 1 $ 1.run(PersistenceUnitServiceImpl.java:167)位于org.wildfly的org.jboss.as.jpa.service.PersistenceUnitServiceImpl $ 1 $ 1.run(PersistenceUnitServiceImpl.java:125)。 security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:640)atg.jboss.as.jpa.service.PersistenceUnitServiceImpl $ 1.run(PersistenceUnitServiceImpl.java:209)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java) :1142)java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:748)at org.jboss.threads.JBossThread.run(JBossThread。 java:320)引起:org.hibernate.QueryException:无法解析属性:org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java)的名称:org.jbpm.services.task.impl.model.TaskImpl :62)org.hiber上的org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:56)位于org.hibernate.hql.internal.ast的org.hibernate.hql.internal.ast.tree.FromElementType.getPropertyType(FromElementType.java:393)的nate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1855)。在org.hibernate.hql.internal.ast.tree.DotNode的org.hibernate.hql.internal.ast.tree.DotNode.getDataType(DotNode.java:660)的tree.FromElement.getPropertyType(FromElement.java:504)。 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.Hq lgqlBaseWalker.constructor(HqlSqlBaseWalker.java:2649)org.hibernate.hql.internal.antlr.HqlSqlWalker.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.ast.QueryTranslatorImpl.analyze的org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:259) (QueryTranslatorImpl.java:262)org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:190)... 18更多
我验证了在persistence.xml中定义了TaskImpl类。这些命名查询在Taskorm.xml中定义。有什么建议?
发现问题并在此处发布以造福他人。 TaskImpl类在jbpm 6和7之间发生了变化。我正在使用v7 Taskorm.xml来对抗v6 jar文件