File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB QL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB QL " Watch "EJB QL " New topic
Author

EJB QL

Suneesh Raman
Ranch Hand

Joined: Jun 13, 2002
Posts: 42
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
Damanjit Kaur
Ranch Hand

Joined: Oct 18, 2004
Posts: 346
Look into the ejb-jar file for schema name. It should be same as in ejb-ql.
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
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

Joined: Jun 13, 2002
Posts: 42
Thanks Damanjit & David It worked !!
Damanjit Kaur
Ranch Hand

Joined: Oct 18, 2004
Posts: 346
its case sensitive.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB QL
 
Similar Threads
EJBQL error
A Simple CMP Bean deployment problem in Bea WebLogic 8.0
A Simple CMP Bean deployment problem in Bea WebLogic 8.0
need help in EJB QL with upper and like
Uregent --Help with Custom Finder