Forums Register Login

Error in EJB-QL......

+Pie Number of slices to send: Send
Hi,
I am using JBOSS4.0 for my CMP2.0 EJB Example. I am using XDOCLET for creating bean releted stuffs. I ve created "select" method in EJB-QL for my CartMasterBean using XDOCLET.

The Select Method in my ejb-jar.xml is as follows:-
===========
<query>
<description><![CDATA[]]></description>
<query-method>
<method-name>ejbSelectcartid</method-name>
<method-params>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT cms.cartbeanid FROM CartMaster cms where cms.customerid = ?1]]></ejb-ql>
</query>
===========

The problem is that when i m deploying My bean in JBOSS it gives me error like:-
================
15:50:06,078 INFO [STDOUT] org.jboss.ejb.plugins.cmp.ejbql.ParseException: Error compiling EJB-QL statement 'SELECT cms.cartbeanid FROM CartMaster cms where cms.customerid = ?1'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "1" at line 1, column 66.
Was expecting one of: "CONCAT" ...
"SUBSTRING" ...
"(" ...
<STRING_LITERAL> ...
<STRING_VALUED_PARAMETER> ...
<STRING_VALUED_PATH> ...
================


What is problem here? Is syntax of Query is wrong??

Please help me.

Thanx in advance.

Prash
I was born with webbed fish toes. This tiny ad is my only friend:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 639 times.
Similar Threads
cmp finder method
Error in EJB2.0 CMR Deployment
Please help me on using EJB-QL with JBoss 4.0
Help me out for CMR deployment in CMP EJB......
ejb2.x finder method not working
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:16:21.