• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

CMP Bean

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Danger, 10,000 volts, very electic .... tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic