Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Error in EJB-QL......

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic