• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

please help with this little problem

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Please help, I have to fix this error for my graduation.

I have installed the J2EE sdk 1.4, full installation. I am trying to make an application with one session bean, one entity bean and a database. The compilation of the source is done. I have bundled the class files into the needed jars with the deploytool. But when I verify the application I get the following error:

For [ Personeel#ejb-jar-ic1.jar#MedewerkerEJB ]
Error: Exception [ JDO74033: Cannot deploy application 'Personeel' 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 have checked the JNDI name of ejb-jar-ic1. When I select the right jar in the tree of the deploytool, and look at sun specific settings, I have for the JNDI name of the CMP resource jdbc/ejbTutorialDB. This is allso the jndi name of the database definition in the admin console. So I do not understand why he gives this error. Do I have to mention this jndi name somewhere else ? (Not in the code, I think, because I use CMP (container managed persistence).

Thanks !

Jurgen
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic