wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes please help with this little problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "please help with this little problem" Watch "please help with this little problem" New topic
Author

please help with this little problem

jurgen hallez
Greenhorn

Joined: May 08, 2004
Posts: 6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: please help with this little problem