dcsimg
why can not deploy my EntityBean changed!_NEWLINE_! in xml's finder-list
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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

Re: why can not deploy my EntityBean changed!_NEWLINE_! in xml's finder-list

Posted By:   prashant_jani  
Posted On:   Thursday, February 28, 2002 03:29 AM


Hi,

Did u check the XML files , all of 'em.
I guess JB4 by default generates xml for weblogic 5.1 (EJB1.1 support).
How did u manage JB4 generate for EJB2 ?

About | Sitemap | Contact