Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • 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
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:-
<ejb-ql><![CDATA[SELECT cms.cartbeanid FROM CartMaster cms where cms.customerid = ?1]]></ejb-ql>

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" ...
"(" ...

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

Please help me.

Thanx in advance.

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
    Bookmark Topic Watch Topic
  • New Topic