开发者

Adding sun-cmp-mappings.xml file

开发者 https://www.devze.com 2023-02-21 19:23 出处:网络
I am creating CMP beans using Netbeans 6.9.1. Everything worked fine until I added the sun-cmp-mappings.xml file to the conf folder and comment out line 59 in project.properties. I got this error Cann

I am creating CMP beans using Netbeans 6.9.1.

Everything worked fine until I added the sun-cmp-mappings.xml file to the conf folder and comment out line 59 in project.properties. I got this error

Cannot deploy application 'myproject-ejb' 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.

I removed the file and it worked again, but I really need to map the name of tables and c开发者_JAVA技巧olumns.

Can anyone helps me please ?


adding <cmp-resource> tag in the sun-ejb-jar.xml to solve the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消