02-12-23 eagledad
我在JB7下作了个CMP2。0 Bean,该BEAN 名为:TestPaper .在该BEAN 的HOME接口中定义了一个finder方法,在EJB-JAR.XML中定义如下:

// <query>

// <query-method>

// <method-name>findBytypeID</method-name>

// <method-params>

// <method-param>String</method-param>

// </method-params>

// </query-method>

// <ejb-ql>SELECT OBJECT(T) FROM TestPaper AS T WHERE T.typeID=?1</ejb-ql>

// </query>


package entbean;

import javax.ejb.*;

import java.util.*;

public interface TestPaperHome extends javax.ejb.EJBLocalHome {

public TestPaper create(String iD) throws CreateException;

public Collection findBytypeID(String typeID) throws FinderException;

public TestPaper findByPrimaryKey(String iD) throws FinderException;



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


"Ent.ejbgrpx": invalid query: In EJB TestPaper, for a query defined in the ejb-jar.xml file with a method signature, findBytypeID(String), we failed to find a corresponding method in the remote home interface, local home interface, or bean class that matches this signature. Note that class parameters such as java.lang.String must be fully qualified, thus 'String' would not match 'java.lang.String'.

"Ent.ejbgrpx": ERROR: ejbc found errors