第一次用jb+weblogic开发cmp出错~

04-05-24 lglg930
《java实用系统》第五章例子

配置好了datasourse

根据datasorse生成了Customer等的cmp

写入EJB-QL语句:

SELECT OBJECT(s) FROM Customer AS s WHERE s.firstName=?1

deploy时候报错:

"CmpSUB.jar": Spaces in the temporary directory path may cause WebLogic EJBC utility to produce fatal compile errors.

"CmpSUB.jar": C:\bea\jdk131_02\bin\javaw -classpath "C:\bea\weblogic700\server\lib\weblogic.jar;C:\JBuilderX\lib\mm.mysql-2.0.4-bin.jar;C:\bea\weblogic700\server\lib\weblogic_sp.jar;C:\bea\weblogic700\server\lib\webservices.jar;" weblogic.ejbc -keepgenerated -compiler C:/bea/jdk131_02/bin/javac D:/java/CmpSUB/CmpSUB.jar.jar D:/java/CmpSUB/CmpSUB.jar

"CmpSUB.jar": ERROR: Error from ejbc: Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:

"CmpSUB.jar":

"CmpSUB.jar": weblogic.ejb20.cmp.rdbms.finders.IllegalExpressionException:

"CmpSUB.jar": While trying to process Query

"CmpSUB.jar": Method Name: findByFN

"CmpSUB.jar": Parameter Types: (java.lang.String)

"CmpSUB.jar": EJB Query: SELECT OBJECT(s) FROM Customer AS s WHERE s.firstName=?1

"CmpSUB.jar": )

"CmpSUB.jar": Could not parse EJB QL expression: SELECT OBJECT(s) FROM Customer AS s WHERE s.firstName=?1

"CmpSUB.jar": ERROR: ejbc found errors

请问这是什么步骤的错误呢?

第一次在jb里弄cmp,好久不得其解~

痛苦,,,

谢谢指点了!

yangzheng
2004-05-24 14:51

banq
2004-05-24 18:37
那个例子是在JBoss下部署的,在wenlogic下需要将jbosscmp-jdbc.xml中的内容转到weblogic-cmp-rdbms-jar.xml文件中。

或者使用JB+Weblogic生成一次CMP,将自动生成weblogic-cmp-rdbms-jar.xml文件

猜你喜欢