• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

CMP Bean

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
it's a teeny, tiny, wafer thin ad:
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic