1 Reply Latest reply on Apr 3, 2003 4:42 AM by Ken Helmes

    simple query error (bug?)

    Ken Helmes Newbie


      jboss-3.0.6_tomcat-4.1.18 on Windows

      Entity beans deploy without query but when adding a very simple "findByUserId" query following error occurs:

      org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "IdentityMeta" at line 2, column 21.
      Was expecting one of:
      "IN" ...

      the ejb-jar.xml:

      <ejb-ql><![CDATA[ SELECT OBJECT(o) FROM IdentityMeta o
      WHERE o.userId = ?1

      the table is defined as IdentityMeta in jbosscmp-jdbc.xml

      Any ideas regarding where to search for this?