My environment:
Windows XP sp2
Eclipse v3.0.2
MyEclipse v3.8.4
JBoss v4.0.2
I get the following after Jboss deploys my entity beans:
15:14:16,609 INFO [STDOUT] org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered “x.ID” at line 1, column 46.
Was expecting one of:
“NOT” …
“(” …
(rest of text omitted)
Here is the offending finder method:
@ejb.finder view-type=”local”
description=”Component finder by id”
signature=”java.util.Collection findByID(com.xxx.model.ComponentPK ID)”
query=”Select OBJECT(x) FROM Component x WHERE x.ID = ?1″
method-intf=”LocalHome”
Here is the get method for the attribute:
/**
* @ejb.interface-method view-type=”both”
* @ejb.persistence column-name=”C_ID”
*
* @return Primary Key
*/
public abstract com.xxx.model.ComponentPK getID();
I get similar parse exception errors on all of the finder methods I defined on all my entity beans.
Is this an XDoclet configuration problem? I don’s see an ejbql syntax error here.
I appreciate any insights you can give.
Thanks.