Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please help with this little problem

 
jurgen hallez
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic