在sun AppServer下发布ejb包失败的错误:JDO74041: While deploying... 的解决办法

来源:互联网 发布:mysql的adddate 编辑:程序博客网 时间:2024/06/09 22:13

在sun AppServer下发布ejb包失败的错误:JDO74041: While deploying ...

sun-cmp-mappings.xml exists but has invalid contents: sizeColumnPair() == 0

的解决办法:

搜了一下:

sun官方网站上说:

This feature had been tested and worked correctly.This is a user error - user needs to check the context of sun-cmp-mappings.xml.

另搜到的一篇文章说:

This error usually means you're missing the column-pair definition in a cmr field mapping. Looking at your sun-cmp-mappings file, I see it missing for at least tRaMajorGroup1 in EJB TRaMajorGroupRelationship. You can probably fix it in the ui mapping, but might need to edit the xml directly. You should also check for other unmapped cmp and cmr.

回归正题:

查sun-cmp-mappings.xml文件中,Session Bean的映射的内容,确认所要用到的数据库表的每个字段,都和相应的session bean关联正确。

原创粉丝点击