Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Michael Illgner
ServiceBuilder and Namespace question
3 febbraio 2010 4.13
Risposta

Michael Illgner

Punteggio: Junior Member

Messaggi: 33

Data di Iscrizione: 30 giugno 2009

Messaggi recenti

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
3 febbraio 2010 7.02
Risposta

Shagul Khajamohideen

Punteggio: Liferay Master

Messaggi: 759

Data di Iscrizione: 27 settembre 2007

Messaggi recenti

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
21 settembre 2010 7.16
Risposta

Dave Weitzel

Punteggio: Regular Member

Messaggi: 153

Data di Iscrizione: 18 novembre 2009

Messaggi recenti

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
23 settembre 2010 4.40
Risposta

Shagul Khajamohideen

Punteggio: Liferay Master

Messaggi: 759

Data di Iscrizione: 27 settembre 2007

Messaggi recenti

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
29 marzo 2012 13.38
Risposta

Balaji Murugesan

Punteggio: Junior Member

Messaggi: 62

Data di Iscrizione: 10 novembre 2010

Messaggi recenti

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
29 marzo 2012 22.08
Risposta

Jitendra Rajput

Punteggio: Liferay Master

Messaggi: 576

Data di Iscrizione: 7 gennaio 2011

Messaggi recenti

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.