Jbuilder8.0中的實體Bean

xuesenlin發表於2003-11-03
一連好久用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自動生成的呀!

相關文章