Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in EJB-QL......  RSS feed

 
Pras Tiwari
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!