File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes CMP Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "CMP Bean" Watch "CMP Bean" New topic
Author

CMP Bean

Balaji Anand
Ranch Hand

Joined: Nov 03, 2004
Posts: 146
hi
I am using j2eesdk 1.4 and deploytool platform edition 8 with PointBase...

i am getting a verify error with my bean... JDO74033.
Can anyone tell me what all day did when creating the bean(take me thro the wizard)...? I am struck up with this please help...

The error is

For [ EntityCMP#ejb-jar-ic1.jar#EmployeeBean ]
Error: Exception [ JDO74033: Cannot deploy application 'EntityCMP' module 'ejb-jar-ic1' with CMP beans: cmp-resource is not defined for this module. The minimum requirement for a cmp-resource is to specify the jndi-name of a jdbc-resource or a persistence-manager-factory-resource to be used with the beans. ] while initializing JDOCodeGenerator. Please check your descriptors and mapping files for consistency

I can post the code also if needed. But the bean is getting deployed and working too. I would like to know what causes this error and how to correct it... Can anyone help please??
Keerthi P
Ranch Hand

Joined: Aug 19, 2003
Posts: 203
Originally posted by Srividhya Anand:
hi
I am using j2eesdk 1.4 and deploytool platform edition 8 with PointBase...

i am getting a verify error with my bean... JDO74033.
Can anyone tell me what all day did when creating the bean(take me thro the wizard)...? I am struck up with this please help...

The error is

For [ EntityCMP#ejb-jar-ic1.jar#EmployeeBean ]
Error: Exception [ JDO74033: Cannot deploy application 'EntityCMP' module 'ejb-jar-ic1' with CMP beans: cmp-resource is not defined for this module. The minimum requirement for a cmp-resource is to specify the jndi-name of a jdbc-resource or a persistence-manager-factory-resource to be used with the beans. ] while initializing JDOCodeGenerator. Please check your descriptors and mapping files for consistency

I can post the code also if needed. But the bean is getting deployed and working too. I would like to know what causes this error and how to correct it... Can anyone help please??


I have not used J2EESDK but it appears from the error description that you have not specified the JNDI name of the datasource for the bean to use. You should configure a DataSource(Connection Pool, whatever), assign a JNDI name to it and map the vendor-specific deployment descriptor (NOT the ejb-jar.xml) to use this JNDI name for managing persistence.


Cheers.<br />Keerthi<br />(SCJP, SCWCD, SCBCD)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CMP Bean