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.
SCJP, SCWCD, SCBCD, OCA J8