一连好久用Jbuilder搞实体Bean ,,,数据库是用Mysql ,,或Jbuilder中的JDatastore,, 老是出现错!,,真是郁闷!!!!
出错提示:
"mysqlCMP.ejbgrpx": ERROR: Error from ejbc: Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
"mysqlCMP.ejbgrpx": weblogic.ejb20.cmp.rdbms.finders.IllegalExpressionException:
"mysqlCMP.ejbgrpx": While trying to process Query
"mysqlCMP.ejbgrpx": Method Name: findByPrimaryKey
"mysqlCMP.ejbgrpx": Parameter Types: (java.lang.String)
"mysqlCMP.ejbgrpx": EJB Query: SELECT OBJECT(bean) FROM Member AS bean WHERE ( bean.logname = ?1 )
"mysqlCMP.ejbgrpx": Could not parse EJB QL expression: SELECT OBJECT(bean) FROM Member AS bean WHERE ( bean.logname = ?1 )
"mysqlCMP.ejbgrpx": weblogic.ejb20.ejbc.EJBCException: line 1: unexpected token: Member
"mysqlCMP.ejbgrpx": Error in FROM clause, there may be a problem with the FROM Clause.
"mysqlCMP.ejbgrpx": Check that the Range Variable Declarations and the Collection Member Declarations are correct
"mysqlCMP.ejbgrpx": and that no EJB QL keywords are being used as:
"mysqlCMP.ejbgrpx": Range Variable names,
"mysqlCMP.ejbgrpx": Collection Member names,
"mysqlCMP.ejbgrpx": Abstract Schema names,
"mysqlCMP.ejbgrpx": ERROR: ejbc found errors
到底怎么回事? 第一行中怎么说是读'META-INF/weblogic-cmp-rdbms-jar.xml'出错,,,但我看了,,也没有什么错呀!!!,奇怪,,
反正就是错在EJB-QL语句中了,,但是EJB-QL语句(在findByFrimaryKey中)是Jbuilder自动生成的呀!