I encountered the following exception when i used bpmContext.getGroupTaskList api. It seems that couldn't find hibernate.queries.hbm.xml. jbpm-3.1.jar is in the lib directory in jboss.
Caused by: org.jbpm.JbpmException: couldn't get pooled task instances list for actors '[AdsOperator, BusinessUser, WFUsers]'
at org.jbpm.db.TaskMgmtSession.findPooledTaskInstances(TaskMgmtSession.java:122)
at org.jbpm.JbpmContext.getGroupTaskList(JbpmContext.java:196)
at com.wxxr.workflow.jbpm.JbpmEngine.getWorklistOfUser(JbpmEngine.java:468)
at com.wxxr.workflow.jbpm.JbpmEngine.getMyWorkList(JbpmEngine.java:444)
... 120 more
Caused by: org.hibernate.MappingException: Named query not known: TaskMgmtSession.findPooledTaskInstancesByActorIds
at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:34)
at org.jbpm.db.TaskMgmtSession.findPooledTaskInstances(TaskMgmtSession.java:116)
... 123 more
This looks like a bug. Can you provide a unit test demonstrating this behaviour? If you do, please file a JIRA issue and attach the test to it, referencing this forum thread.
Thanks,
Koen