On Mon, 2003-03-24 at 02:25, Eric Chow wrote: > Please help. I can't find any problem in my bean, but some exception raised when > deployment. > All the generation and compilation are successful without any error or warning. > > ============================================ > 2003-03-24 10:19:07,090 WARN [org.jboss.system.ServiceController] Problem starting > service jboss.j2ee:jndiName=eric.smsxdoc.local.DailyCounter,service=EJB > org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested throwable: > (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "<EOF>" at line 1, > column 57. > Was expecting one of: > "AS" ... > <IDENTIFIER> ... > ) > at org.jboss.ejb.plugins.cmp.jdbc.JDBCJBossQLQuery.<init>(JDBCJBossQLQuery.java:46)
Pretty self-explanatory, I'd say. It doesn't like your ejbql. If what's in the DD matches what's in your @tags, then it's nothing to do with XDoclet... GIGO. > * @ejb.finder > * method-intf="LocalHome" > * result-type-mapping="Local" > * signature="java.util.Collection findByPeriod(java.lang.Long date1, > java.lang.Long date2)" > * query="SELECT OBJECT(o) FROM DailyCounter WHERE o.counterDate BETWEEN $1 > AND $2" > * transaction-type="Required" Well, I'm no ejbql expert, but shouldn't that be SELECT OBJECT(o) FROM DailyCounter AS o WHERE o.counterDate BETWEEN $1 AND $2 ? (the "AS" is optional) Which tallies with the error message you were getting about it expecting "AS <IDENTIFIER>" Andrew. ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
