aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Error during deployment of CMP bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Error during deployment of CMP bean" Watch "Error during deployment of CMP bean" New topic
Author

Error during deployment of CMP bean

sreekailas balan
Greenhorn

Joined: Sep 30, 2002
Posts: 6
I am getting the following error while doing ejbc. Can anyone tell me ehy this error is coming? I am using weblogic 6.0

ERROR: Error from ejbc: Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml
'. The error was:
weblogic.ejb20.cmp.rdbms.finders.IllegalExpressionException:
While trying to process Finder
Method Name: findByName
Parameter Types: (java.lang.String)
EJB Query: SELECT OBJECT(a) FROM CourseBean As a WHERE courseName = ?1
)
Could not parse EJB QL expression: SELECT OBJECT(a) FROM CourseBean As a WHERE courseName = ?1

Thanks


Sreekailas
georgejk
Greenhorn

Joined: Jul 29, 2002
Posts: 24
Hi
Your QL is seems to be wrong.Try out something like
SELECT OBJECT(a) FROM CourseBean AS a WHERE a.courseName = ?1
I think this will solve ur problem.
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
"georgejk,
Thanks for joining JavaRanch, but could you just take a quick look at the naming policy and edit your profile accordingly.
Thanks,
Simon
Bartender (moderator) of "J2EE and EJB" forum
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error during deployment of CMP bean