This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: please help with this little problem
 
Similar Threads
CMP Bean
I am looking for somebody who uses the deploytool of Sun
JBOSS EJBQL generate wrong SQL
Problem with deploying
Entity Bean Verify Error JDO74033