Either I"m losing my mind, or I'm doing something really stupid and not seeing it.  Below is the markup I have for a finder method.  It was cut and paste from all the other finder methods I use, save for changing the bean references.  Following is the stack trace and error message I get when I deploy it.  It looks right to me.  Did I miss something?  Is this a Jboss error?  It deploys fine (save for a warning) if I remove the "where...." portion.
 
Thanks for any guidance.
 
 
 * @ejb.bean
 *     name = "Rank"
 *     description = "Represents a Rank"
 *     display-name = "RankBean - Entity"
 *     jndi-name = "${ejb.prefix}/Rank"
 *     local-jndi-name = "${ejb.prefix}/local/Rank"
 *     primkey-field="rankId"
 *     type="CMP"
 *
 * @ejb.finder signature="java.util.Collection findAll()"
 *
 * @ejb.finder
 *     signature="Rank findByRankId(java.lang.Integer id)"
 *     query="SELECT Object(arank) FROM Rank AS arank WHERE arank.rankId = ?1"
 *     unchecked="true"
 
 
 
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT Object(arank) FROM Rank AS ar
ank WHERE arank.rankId = ?1'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "
1" at line 1, column 62.
Was expecting one of:
    <IDENTIFICATION_VARIABLE> ...
    <ENTITY_VALUED_PARAMETER> ...
    <ENTITY_VALUED_PATH> ...
    )
        at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>(JDBCEJBQLQuery.java:46)
            ....
 

Reply via email to