• 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
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

EJB QL

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am using the Sun Server Platform Edition 8 . I am using deployment tool for deploying my Entity bean I am getting the following error

Deploy action running...
Deployment failed on target localhost:4848_server : Fatal Error from EJB Compiler -- JDO74025: JDOCodeGenerator: Caught an Exception validating CMP bean 'AccountBean' in application 'Account' module 'ejb-jar-ic': JDO75006: Invalid EJBQL query
Bean: AccountBean
Method: testbean.Account findAccount(double)
EJBQL: Select OBJECT(p) from accountbean AS p where p.balance >?1
Error: column(23): JDO75313: Identifier 'accountbean' does not denote abstract schema type.
JDO75006: Invalid EJBQL query
Bean: AccountBean
Method: java.util.Collection findBigAccounts(double)
EJBQL: Select OBJECT(p) from accountbean AS p where p.balance >?1
Error: column(23): JDO75313: Identifier 'accountbean' does not denote abstract schema type

Please reply if any one has any idea ?

Thanks
Suneesh VR
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look into the ejb-jar file for schema name. It should be same as in ejb-ql.
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Suneesh VR:
Bean: AccountBean
Method: testbean.Account findAccount(double)
EJBQL: Select OBJECT(p) from accountbean AS p where p.balance >?1

It's been a while since I've had to touch the EJB-QL queries I wrote a year ago, but is it case sensitive when it comes to bean names?
[ January 31, 2005: Message edited by: David Harkness ]
 
Suneesh Raman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Damanjit & David It worked !!
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
its case sensitive.
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic