• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

EJB_QL identification var problem

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
_____________________________________
EJB_QL identification variable problem
_____________________________________

hi,
As per ejb2.0 spec identification variables in EJB-QL r case insensitive. But ven i used following in ejb-jar.xml with weblogic8.1
***********
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM DepartmentBean O]]></ejb-ql>
****************

i got follwing exc..n while deploying the jar file
&&&&&&&&&&&&&&&
SELECT OBJECT( =>> o <<= ) FROM DepartmentBean O

EJB QL compilation encountered error: [EJB:013057]
Problem, in EJB QL the argument of OBJECT(o) in SELECT OBJECT(o) must be either a range variable ide
ntifier or a collection member identifier, either of which are defined in the query FROM clause as i
n 'SELECT OBJECT(e) FROM EmployeeBean AS e' or 'SELECT OBJECT(f) FROM EmployeeBean AS e, IN(e.friend
s)f'. 'o' is neither a range variable nor a collection member identifier.

Action, review the EJB QL query and correct the SELECT clause.
&&&&&&&&&&&&&&&


cn anyone explain me reazon for this?
thanx
Binoj V

PS:Weblogic8.1 implements EJB2.1.
Has this restriction on the identification variables removed in 2.1?
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
EJB 2.1 is backward compatible with EJB 2.0. Could be a bug in Weblogic 8.1 ?
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whereas most servers are backwards compatible to some extent, most will take the version of the DTD or your DD as an indicator of which version to treat it as. So, I would say, make sure you are deploying your app as 2.0 even though you're deploying into a server that does 2.1 and backwards 2.0. Make sense?
 
I am displeased. You are no longer allowed to read this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic