[EMAIL PROTECTED] wrote: > I have an EJB-QL issue when deploying an EJB. > Jboss says : > 51:17,033 WARN [ServiceController] Problem starting service > jboss.j2ee:jndiName=com.gerling.inventaire.ejb.ConsumableCMPBe > an,service=EJB .jboss.deployment.DeploymentException: Error compiling > EJB-QL statement 'SELECT OBJECT(a) FROM consumableSchema as a where > a.printer = ?1'; - nested throwable: > (org.jboss.ejb.plugins.cmp.ejbql.Un > wnPathException: Unknown terminal field: at line 1, column > 61. Encountered: "REFERENCE" after: "a.") > > here is the relevant snipplet : > > ....... > * @ejb.finder > * query = "SELECT OBJECT(a) FROM consumableSchema as a > where a.printer = > ?1" > * signature = "java.util.Collection > findByPrinter(java.lang.String printer)" *
Not being familiar with JBoss, please allow me to ask the obvious: Do you have a CMP-field called "printer" that looks something like the following? /** * @ejb.persistence * column-name="printer" */ public abstract String getPrinter ( ) ; EJB-QL expects bean and field names -- not tables and columns. David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
