<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
JBPM JPA [PersistenceUnit: org.jbpm.task] Unable to build EntityManagerFactory
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/ous2k">ous2k</a> in <i>jBPM</i> - <a href="https://community.jboss.org/docs/DOC-17660">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p>I'm using  <strong>eclipse  with JBPM 5.2 with H2 data base</strong> i have found a sample in the following link :<a class="jive-link-blog-small" href="https://community.jboss.org/people/bpmn2user/blog/2011/03/25/jbpm5--persistence-hello-process-example">https://community.jboss.org/people/bpmn2user/blog/2011/03/25/jbpm5--persistence-hello-process-example</a></p><p>but when i tried to run it i get the following errors</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>0    13/03 10:23:07,196[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>118  13/03 10:23:07,314[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>152  13/03 10:23:07,348[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>191  13/03 10:23:07,387[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>228  13/03 10:23:07,424[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>267  13/03 10:23:07,463[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>323  13/03 10:23:07,519[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>372  13/03 10:23:07,568[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>402  13/03 10:23:07,598[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>438  13/03 10:23:07,634[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>465  13/03 10:23:07,661[main] ERROR hibernate.hql.PARSER.reportError  -  Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary]</p><p>[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: org.jbpm.task.query.TaskSummary]</p><p>472  13/03 10:23:07,668[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: TasksAssignedAsPotentialOwnerWithGroups</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, 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 ( potentialOwners.id = :userId or potentialOwners.id in (:groupIds) ) 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]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>474  13/03 10:23:07,670[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: TasksOwned</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, 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, org.jbpm.task.I18NText names, org.jbpm.task.I18NText subjects, org.jbpm.task.I18NText descriptions where t.taskData.actualOwner.id = :userId and names in elements( t.names) and names.language = :language 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.expirationTime is null]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>474  13/03 10:23:07,670[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: TasksAssignedAsPotentialOwner</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subject.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 left join t.subjects as subject, org.jbpm.task.I18NText names, org.jbpm.task.I18NText descriptions, org.jbpm.task.OrganizationalEntity potentialOwners where potentialOwners.id = :userId and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and names.language = :language and names in elements( t.names) and ( subject.language = :language 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]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>475  13/03 10:23:07,671[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: TasksAssignedAsRecipient</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, 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, org.jbpm.task.I18NText names, org.jbpm.task.I18NText subjects, org.jbpm.task.I18NText descriptions, org.jbpm.task.OrganizationalEntity recipients where recipients.id = :userId and recipients in elements ( t.peopleAssignments.recipients ) 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.expirationTime is null]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>476  13/03 10:23:07,672[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: TasksAssignedAsTaskStakeholder</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, 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, org.jbpm.task.I18NText names, org.jbpm.task.I18NText subjects, org.jbpm.task.I18NText descriptions, org.jbpm.task.OrganizationalEntity taskStakeholder where taskStakeholder.id = :userId and taskStakeholder in elements ( t.peopleAssignments.taskStakeholders ) 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.expirationTime is null]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>477  13/03 10:23:07,673[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: TasksAssignedAsExcludedOwner</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, 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, org.jbpm.task.I18NText names, org.jbpm.task.I18NText subjects, org.jbpm.task.I18NText descriptions, org.jbpm.task.OrganizationalEntity excludedOwners where excludedOwners.id = :userId and excludedOwners in elements ( t.peopleAssignments.excludedOwners ) 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.expirationTime is null]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>478  13/03 10:23:07,674[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: TasksAssignedAsPotentialOwnerByGroup</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, 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 potentialOwners.id = :groupId 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]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>479  13/03 10:23:07,675[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: GetSubTasksByParentTaskId</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, 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, org.jbpm.task.I18NText names, org.jbpm.task.I18NText subjects, org.jbpm.task.I18NText descriptions where t.taskData.parentId = :parentId 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]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>480  13/03 10:23:07,676[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: TasksAssignedAsTaskInitiator</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, 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, org.jbpm.task.I18NText names, org.jbpm.task.I18NText subjects, org.jbpm.task.I18NText descriptions, org.jbpm.task.OrganizationalEntity taskInitiator where taskInitiator.id = :userId and taskInitiator = t.peopleAssignments.taskInitiator 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.expirationTime is null]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>481  13/03 10:23:07,677[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: TasksAssignedAsBusinessAdministrator</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, 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, org.jbpm.task.I18NText names, org.jbpm.task.I18NText subjects, org.jbpm.task.I18NText descriptions, org.jbpm.task.OrganizationalEntity businessAdministrator where businessAdministrator.id = :userId and businessAdministrator in elements ( t.peopleAssignments.businessAdministrators ) 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.expirationTime is null]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>482  13/03 10:23:07,678[main] ERROR hibernate.impl.SessionFactoryImpl.<init>  - Error in named query: SubTasksAssignedAsPotentialOwner</p><p>org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [org.jbpm.task.query.TaskSummary] [select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, 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]</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)</p><p>          at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)</p><p>          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:261)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)</p><p>          at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)</p><p>          at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)</p><p>          at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)</p><p>          at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:484)</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.task] Unable to build EntityManagerFactory</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)</p><p>          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)</p><p>          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</p><p>          at com.sample.TaskServer.main(TaskServer.java:21)</p><p>Caused by: org.hibernate.HibernateException: Errors in named queries: TasksAssignedAsPotentialOwnerWithGroups, TasksOwned, TasksAssignedAsPotentialOwner, TasksAssignedAsRecipient, TasksAssignedAsTaskStakeholder, TasksAssignedAsExcludedOwner, TasksAssignedAsPotentialOwnerByGroup, GetSubTasksByParentTaskId, TasksAssignedAsTaskInitiator, TasksAssignedAsBusinessAdministrator, SubTasksAssignedAsPotentialOwner</p><p>          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:407)</p><p>          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p>          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p>          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p>          ... 4 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>does any one can provide help??</p><p>in attachement you can find the project </p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Comment by <a href="https://community.jboss.org/docs/DOC-17660">going to Community</a></p>
        <p style="margin: 0;">Create a new document in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>