<!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/message/723436#723436">View the full discussion</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:32:52,443[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>113  13/03 10:32:52,556[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>151  13/03 10:32:52,594[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>187  13/03 10:32:52,630[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>219  13/03 10:32:52,662[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>272  13/03 10:32:52,715[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>303  13/03 10:32:52,746[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>369  13/03 10:32:52,812[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>398  13/03 10:32:52,841[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>450  13/03 10:32:52,893[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>475  13/03 10:32:52,918[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>481  13/03 10:32:52,924[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>483  13/03 10:32:52,926[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>484  13/03 10:32:52,927[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>485  13/03 10:32:52,928[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>486  13/03 10:32:52,929[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>487  13/03 10:32:52,930[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>488  13/03 10:32:52,931[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>489  13/03 10:32:52,932[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>490  13/03 10:32:52,933[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>491  13/03 10:32:52,934[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>492  13/03 10:32:52,935[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 style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>does any one can provide help??</strong></p><p><strong>in attachement you can find the project</strong></p><p><strong><br/></strong></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/723436#723436">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>