Asad Rauf [http://community.jboss.org/people/imran.h] created the discussion
"Re: Instantiating a process in JBPM5" To view the discussion, visit: http://community.jboss.org/message/624340#624340 -------------------------------------------------------------- In mt stderr.log I see this exception: ESC[0mjavax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677) Caused by: org.hibernate.HibernateException: Errors in named queries: TasksAssignedAsPotentialOwnerWithGroups, TasksOwned, TasksAssignedAsPotentialOwner, TasksAssignedAsRecipient, TasksAssignedAsTaskStakeholder, UnescalatedDeadlines, TasksAssignedAsExcludedOwner, TasksAssignedAsPotentialOwnerByGroup, GetSubTasksByPa rentTaskId, TasksAssignedAsTaskInitiator, TasksAssignedAsBusinessAdministrator, SubTasksAssignedAsPotentialOwner at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:365) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) ... 33 more In my app log I see this exception: [REQ:4ABE653B0B118.AC114F2C.267B6495]] Error in named query: SubTasksAssignedAsPotentialOwner org.hibernate.hql.ast.QuerySyntaxException: Unable to locate class [org.drools.task.query.TaskSummary] [select new org.drools.task.query.TaskSummary( t.id, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from org.jbpm.task.Task t left join t.taskData.createdBy left join t.taskData.actualOwner, org.jbpm.task.I18NText names, org.jbpm.task.I18NText subjects, org.jbpm.task.I18NText descriptions, org.jbpm.task.OrganizationalEntity potentialOwners where t.taskData.parentId = :parentId and potentialOwners.id = :userId and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null] at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:31) at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:24) at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59) at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:235) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77) at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56) at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72) at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:402) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:352) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) There is no cause. The app log has a few more exceptions for other queries but the cause for all is the same, no TaskSummary. -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/624340#624340] Start a new discussion in jBPM at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
