Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

please help with this little problem  RSS feed

jurgen hallez
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 !

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!