• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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