4 Replies Latest reply on Sep 4, 2006 12:41 PM by Varadarajan Venkatesan

    JBPM Identity Component - QuerySyntaxException: JBPM_ID_USER

    Varadarajan Venkatesan Newbie


      I am developing a seam application integrated with JBPM. I am using Seam 1.0.1.GA on Jboss 4.0.4.GA with JBPM 3.1 I have a combined persistnace for JBMP and my application objects.

      When I do a create query as follows:

      Query jbpmquery = em.createQuery("select NAME_ from JBPM_ID_USER");

      I get the following error:

      15:08:26,080 ERROR [STDERR] javax.persistence.PersistenceException: org.hibernat
      e.hql.ast.QuerySyntaxException: JBPM_ID_USER is not mapped [select NAME_ from JBPM_ID_USER]

      I have copied the jbpm-identity-3.1.jar into ejb3 folder for the ear
      have the following entires in the hibernate.cfg.xml

      mapping resource="org/jbpm/identity/User.hbm.xml"
      mapping resource="org/jbpm/identity/Group.hbm.xml"
      mapping resource="org/jbpm/identity/Membership.hbm.xml"

      Any clues why this is happenning?

      Thanks & Regards,