• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error during deployment of CMP bean

 
sreekailas balan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
georgejk
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic