Posted By:
Sean_Wong
Posted On:
Friday, April 20, 2001 07:46 AM
Using jb4 generate a CMP EntityBean with 2.0 style,so It is with a finder named findByPrimaryKey,I just wanna add a finder method.firstly add: public Enumeration findByCorpcode(java.math.BigDecimal corpcode) throws RemoteException, FinderException; then in the weblogic-cmp-rdbms-jar.xml: findByCorpcode java.math.BigDecimal <(excalmatory mark here)[CDATA[= corpCode $0)]]> when I press the green button to run it: CST 2001: Enterprise JavaBeans initializing pc_to_op.length = 145 pc_to_op[0] = ALOAD_0 pc_to_op[1] = INVOKEVIRTUAL (weblogic/ejb/internal/EJBHomeImpl.getEJBStore(()Lweblogic/ejb/extensions/EJBStore
More>>
Using jb4 generate a CMP EntityBean with
2.0 style,so It is with a finder named findByPrimaryKey,I just wanna add a finder method.firstly add:
public Enumeration findByCorpcode(java.math.BigDecimal corpcode) throws RemoteException, FinderException;
then in the weblogic-cmp-rdbms-jar.xml:
findByCorpcode
java.math.BigDecimal
<(excalmatory mark here)[CDATA[= corpCode $0)]]>
when I press the green button to run it:
CST 2001:
Enterprise JavaBeans initializing
pc_to_op.length = 145
pc_to_op[0] = ALOAD_0
pc_to_op[1] = INVOKEVIRTUAL (weblogic/ejb/internal/EJBHomeImpl.getEJBStore(()Lweblogic/ejb/extensions/EJBStore;))
pc_to_op[2] = null
pc_to_op[3] = null
...
CST 2001:
Could not deploy: 'D:hotejbhotejb.jar': file is not a valid jar file, or does not
contain a valid bean
What's wrong?
thanx advance
<<Less