4 Replies Latest reply on Jul 24, 2005 4:33 PM by lafr

    EJB QL Problem

    chrismalan

      When I deploy the ear to JBoss-4.0.2 I get the following:
      Error compiling JBossQL statement 'select Object(o) from principalsSchema o'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "principalsSchema" at line 1, column 23.
      Was expecting one of:
      "IN" ...
      <ABSTRACT_SCHEMA> ...

      The simple application has only findAll queries and this happens for all of them. It happens with "as o" as well as just "o", like the example above.

      Despite that everything works, even the findAll queries.

      The IDE is JBoss IDE 1.5 Milestone 1 and the JDK 1.5.0.01

      Any idea what is wrong? I searched JBoss and the web and can find related stuff, but not this for simple findAll queries.

      Here is an example:
      @ejb.finder
      * signature="java.util.Collection findAll()"
      * query="select Object(o) from principalsSchema as o"
      * view-type="local"

      Thanks

      Chris