On Sat, 2003-03-15 at 23:32, Cleber Miranda Barboza wrote: > I'm using xdoclet !
If you're weren't, you'd be on the wrong list :-) > When I deploy my application, I get the follow message: ... >2003-03-15 19:47:43,983 INFO [org.jboss.ejb.EjbModule] Deploying Pedido ... > org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested throwable: > (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "PedidoBean" at line 1, > column 23. > Was expecting one of: > "IN" ... > <ABSTRACT_SCHEMA> ... > ) Looks like there's something about your EJB-QL that jboss doesn't like. > <ejb-ql><![CDATA[SELECT OBJECT(p) FROM PedidoBean AS p WHERE > p.codEmpresa=?1 AND p.numPedido=?2 AND p.natOperacao=?3]]></ejb-ql> I'm no ejb-ql expert, but shouldn't that be Pedido and not PedidoBean? After all, that's the bean name it says it was deploying earlier on... > In my PedidoBean.java I have: > > ... > > * @ejb.finder > * signature="tci.interfaces.PedidoLocal findByPedido(String codEmpresa, > BigDecimal numPedido, String natOperacao)" > * unchecked="true" > * query="SELECT OBJECT(p) FROM Pedido AS p WHERE p.codEmpresa=?1 AND > p.numPedido=?2 AND p.natOperacao=?3" > * view-type="local" You sure? The relevant part of the template file uses <ejb-ql><![CDATA[<XDtClass:classTagValue tagName="ejb:finder" paramName="query"/>]]></ejb-ql> which ought to include the contents of the query parameter verbatim. You didn't have PerdidoBean in there in an earlier version of the code, did you? If not, and it's changing it along the way, that's a serious bug and you should raise an issue. However, I just checked one of my own beans; that uses * @ejb.finder signature="java.util.Collection findAll()" * method-intf="LocalHome" * query="SELECT OBJECT(o) FROM Appearance o" * result-type-mapping="Local" and I got <ejb-ql><![CDATA[SELECT OBJECT(o) FROM Appearance o]]></ejb-ql> in the generated file as expected, so make sure you have a reproducible test case to upload to the issue if you do. 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
