掲示板

ServiceBuilder and Namespace question

14年前 に Michael Illgner によって更新されました。

ServiceBuilder and Namespace question

Junior Member 投稿: 33 参加年月日: 09/06/30 最新の投稿
Hi folks
I have two portlets in different deployment units using the same "servicebuilder" namespace.
The goal was to get a common prefix for the custom database tables. But after the deployment of the second portlet I get a OldServiceComponentException about the Build Namespace ...

Is is not possible for different SDK portlets to share a common namespace ?
thumbnail
14年前 に Shagul Khaja によって更新されました。

RE: ServiceBuilder and Namespace question

Liferay Master 投稿: 758 参加年月日: 07/09/27 最新の投稿
I think the idea of individual service.xml is to keep one component separate from the other.

Also the way Liferay handles schema update for every service component based on namespace and buildnumber will result in few of your tables getting updated to new builder number and not the rest.


Best,
Shagul
thumbnail
13年前 に Dave Weitzel によって更新されました。

RE: ServiceBuilder and Namespace question

Regular Member 投稿: 208 参加年月日: 09/11/18 最新の投稿
resurrecting this old thread.

I am getting the message:

Caused by: com.liferay.portal.OldServiceComponentException: Build namespace tw has build number 9 which is newer than 7

Currently I have only one hook using this namespace although plan on a number of other portlets using it if possible (so all my tables have same prefix)

For now though where are these build numbers stored so a comparison is made?
How can I change it to remove the error?
thumbnail
13年前 に Shagul Khajamohideen によって更新されました。

RE: ServiceBuilder and Namespace question

Liferay Master 投稿: 758 参加年月日: 07/09/27 最新の投稿
The service.properties files should have a number like below.

build.number=7


This goes in the "ServiceComponent" table in the database.
thumbnail
12年前 に Balaji Murugesan によって更新されました。

RE: ServiceBuilder and Namespace question

Junior Member 投稿: 74 参加年月日: 10/11/10 最新の投稿
Hi,

Even after changing the build.number, I'm getting same exception.
"Caused by: com.liferay.portal.OldServiceComponentException: Build namespace Reports has build number 44 which is newer than 1"


Pleae help me.
thumbnail
12年前 に Jitendra Rajput によって更新されました。

RE: ServiceBuilder and Namespace question

Liferay Master 投稿: 875 参加年月日: 11/01/07 最新の投稿
modify your build.number to greater than 44.
If its not working then try by removing temp/work and again check.

And in worst case ...go to your database. Search for servicecomponent table and check records for your portlet and delete them.
10年前 に Prejith Pulikkottil によって更新されました。

RE: ServiceBuilder and Namespace question

New Member 投稿: 3 参加年月日: 13/10/17 最新の投稿
good.... it is working fine for me
thanks