Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Michael Illgner
ServiceBuilder and Namespace question
February 3, 2010 4:13 AM
Answer

Michael Illgner

Rank: Junior Member

Posts: 33

Join Date: June 30, 2009

Recent Posts

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 ?
Shagul Khajamohideen
RE: ServiceBuilder and Namespace question
February 3, 2010 7:02 AM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

Recent Posts

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
Dave Weitzel
RE: ServiceBuilder and Namespace question
September 21, 2010 7:16 AM
Answer

Dave Weitzel

Rank: Regular Member

Posts: 203

Join Date: November 18, 2009

Recent Posts

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?
Shagul Khajamohideen
RE: ServiceBuilder and Namespace question
September 23, 2010 4:40 AM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

Recent Posts

The service.properties files should have a number like below.

1build.number=7


This goes in the "ServiceComponent" table in the database.
Balaji Murugesan
RE: ServiceBuilder and Namespace question
March 29, 2012 1:38 PM
Answer

Balaji Murugesan

Rank: Junior Member

Posts: 74

Join Date: November 10, 2010

Recent Posts

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.
Jitendra Rajput
RE: ServiceBuilder and Namespace question
March 29, 2012 10:08 PM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 858

Join Date: January 7, 2011

Recent Posts

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.
Prejith Pulikkottil
RE: ServiceBuilder and Namespace question
October 29, 2013 4:11 AM
Answer

Prejith Pulikkottil

Rank: New Member

Posts: 3

Join Date: October 17, 2013

Recent Posts

good.... it is working fine for me
thanks