Fórum

LR 6.1.0 Service Builder

thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

LR 6.1.0 Service Builder

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Hi All
In my service.xml i have modified one column and removed one column..After build service and deploy, the database table is uneffected..Long before i had faced same issue and i resolved it but i dont know how..Is there any valid solution for this

Regards
azhar
thumbnail
Subhash Pavuskar, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
Hi,

Remove jar from WEB-INF->Lib folder and then rebuild your service !!
thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Hi
It is not working..i deleted the serive.jar and rebuild service..new service.jar is created but no use.emoticon

Regards
azhar
thumbnail
Subhash Pavuskar, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
your tomcat is in running condition right ?
thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Hi

Yes.server is currently running
thumbnail
Subhash Pavuskar, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
can you share your service.xml code and if error message from console !!!
thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Old servic.xml or new...?
i changed the name of primary key column and i deleted another column...
<entity name="Project" local-service="true" remote-service="false">
<column name="RecId" type="long" primary="true" />
<column name="ProjectId" type="long" />
<column name="ProjectName" type="String" />


changed to
<entity name="Project" local-service="true" remote-service="false">
<column name="ProjectId" type="long" primary="true" />
<column name="ProjectName" type="String" />


And no error in console..
thumbnail
Subhash Pavuskar, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
try this one !! 1st check serviceComponent table from your databse !! The build.number in service.properties must be higher than that, stored in servicecomponent if its like that then change it to the value higher value in your service.properties !! then rebuild your service !!
thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Hi Subhash Pavuskar

Subhash Pavuskar:
try this one !! 1st check serviceComponent table from your databse !! The build.number in service.properties must be higher than that, stored in servicecomponent if its like that then change it to the value higher value in your service.properties !! then rebuild your service !!


there was one warning while building service layer even though it was showing build successful.
I learnt two things today 1)we are not supposed to ignore the warning while building service
2) build.number issue
And it is working fine now emoticon
Regards
Azhar
thumbnail
Subhash Pavuskar, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
Yeah i know bcs even i too faced same problem long back !!
thumbnail
Jitendra Rajput, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Liferay Master Postagens: 875 Data de Entrada: 07/01/11 Postagens Recentes
You can also verify from the logs if your service changes are applied or not .
Upgrading " + buildNamespace +" database to build number " + buildNumber
Upgrading database with tables.sql......
thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Jitendra Rajput:
You can also verify from the logs if your service changes are applied or not .
Upgrading " + buildNamespace +" database to build number " + buildNumber
Upgrading database with tables.sql......



how to check using above code....?litle confused
thumbnail
Jitendra Rajput, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Liferay Master Postagens: 875 Data de Entrada: 07/01/11 Postagens Recentes
This is not the code i just gave you example log..
Logs will be like this

Upgrading test_Portlet database to build number 100
Upgrading database with tables.sql......
thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Okay..Now almost clear about it.....it ll throw below mentioned exception if there is some problem with service..am i right...?
Build namespace UNIVERSITY has build number 15 which is newer than 10
thumbnail
Jitendra Rajput, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Liferay Master Postagens: 875 Data de Entrada: 07/01/11 Postagens Recentes
Check my post on build number space error.

http://itsliferay.blogspot.in/2012/04/build-number-deployment-error.html
thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Jitendra Rajput:
Check my post on build number space error.

http://itsliferay.blogspot.in/2012/04/build-number-deployment-error.html



This blog is familiar to me.Thank you for sharing your knowledge

Regards
azhar
thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

RE: LR 6.1.0 Service Builder

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Also tables.sql file is uneffected.Should i delete the .java classes genereted by the service layer..?Or this problem is specific to LR 6.1.0..?