微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在service.xml上添加新表时出错-Liferay 6.2

如何解决在service.xml上添加新表时出错-Liferay 6.2

我正在使用liferay 6.2,我想在service.xml上添加一个新表。

service.xml上的新条目是:

<entity name="FeedError" local-service="true" remote-service="false" cache-enabled="false">

<column name="feId" type="long" primary="true" id-type="identity" />

<column name="errorCode" type="String" />

<column name="translation" type="String" />

<column name="facility" type="String" />

<column name="recordId" type="long" />

<column name="dateTime" type="Date" />

</entity>

然后,当使用Ant或Liferay插件运行Build Service时,出现以下错误

BUILD Failed

/Liferay/liferay-plugins-sdk-6.2/build-common-plugin.xml:443: The following error occurred while executing this line:

/Liferay/liferay-plugins-sdk-6.2/build-common-plugin.xml:147: Service Builder generated exceptions.

查看build-common-plugin.xml:443是:

439:    <build-service
440:     service.api.dir="${basedir}/${service.base.dir}/service"
441:     service.sql.dir="${basedir}/${service.base.dir}/sql"
442:     service.test.dir=""
443:     />

仅在向service.xml中添加新条目时才出现错误;对于现有的,它的构建没有任何问题。

任何帮助都非常感谢!

解决方法

我几乎不记得表或列名称中的关键字“错误”存在问题。服务构建者曾经尝试使用此关键字。您可以尝试在列定义中不要使用“错误”一词。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。