Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
mohammad azaruddin
LR 6.1.0 Service Builder
27 de Março de 2013 23:32
Resposta

mohammad azaruddin

Ranking: Expert

Mensagens: 440

Data de entrada: 17 de Setembro de 2012

Mensagens 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
Subhash Pavuskar
RE: LR 6.1.0 Service Builder
27 de Março de 2013 23:42
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens recentes

Hi,

Remove jar from WEB-INF->Lib folder and then rebuild your service !!
mohammad azaruddin
RE: LR 6.1.0 Service Builder
27 de Março de 2013 23:54
Resposta

mohammad azaruddin

Ranking: Expert

Mensagens: 440

Data de entrada: 17 de Setembro de 2012

Mensagens 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
Subhash Pavuskar
RE: LR 6.1.0 Service Builder
27 de Março de 2013 23:56
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens recentes

your tomcat is in running condition right ?
mohammad azaruddin
RE: LR 6.1.0 Service Builder
27 de Março de 2013 23:57
Resposta

mohammad azaruddin

Ranking: Expert

Mensagens: 440

Data de entrada: 17 de Setembro de 2012

Mensagens 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..?
mohammad azaruddin
RE: LR 6.1.0 Service Builder
27 de Março de 2013 23:57
Resposta

mohammad azaruddin

Ranking: Expert

Mensagens: 440

Data de entrada: 17 de Setembro de 2012

Mensagens recentes

Hi

Yes.server is currently running
Subhash Pavuskar
RE: LR 6.1.0 Service Builder
28 de Março de 2013 00:04
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens recentes

can you share your service.xml code and if error message from console !!!
mohammad azaruddin
RE: LR 6.1.0 Service Builder
28 de Março de 2013 00:17
Resposta

mohammad azaruddin

Ranking: Expert

Mensagens: 440

Data de entrada: 17 de Setembro de 2012

Mensagens 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..
Subhash Pavuskar
RE: LR 6.1.0 Service Builder
28 de Março de 2013 00:13
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens 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 !!
mohammad azaruddin
RE: LR 6.1.0 Service Builder
28 de Março de 2013 01:18
Resposta

mohammad azaruddin

Ranking: Expert

Mensagens: 440

Data de entrada: 17 de Setembro de 2012

Mensagens 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
Subhash Pavuskar
RE: LR 6.1.0 Service Builder
28 de Março de 2013 01:45
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens recentes

Yeah i know bcs even i too faced same problem long back !!
Jitendra Rajput
RE: LR 6.1.0 Service Builder
28 de Março de 2013 03:29
Resposta

Jitendra Rajput

Ranking: Liferay Master

Mensagens: 677

Data de entrada: 7 de Janeiro de 2011

Mensagens recentes

You can also verify from the logs if your service changes are applied or not .
1Upgrading " + buildNamespace +" database to build number " + buildNumber
2Upgrading database with tables.sql......
mohammad azaruddin
RE: LR 6.1.0 Service Builder
28 de Março de 2013 03:45
Resposta

mohammad azaruddin

Ranking: Expert

Mensagens: 440

Data de entrada: 17 de Setembro de 2012

Mensagens recentes

Jitendra Rajput:
You can also verify from the logs if your service changes are applied or not .
1Upgrading " + buildNamespace +" database to build number " + buildNumber
2Upgrading database with tables.sql......



how to check using above code....?litle confused
Jitendra Rajput
RE: LR 6.1.0 Service Builder
28 de Março de 2013 04:08
Resposta

Jitendra Rajput

Ranking: Liferay Master

Mensagens: 677

Data de entrada: 7 de Janeiro de 2011

Mensagens 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......
mohammad azaruddin
RE: LR 6.1.0 Service Builder
28 de Março de 2013 04:13
Resposta

mohammad azaruddin

Ranking: Expert

Mensagens: 440

Data de entrada: 17 de Setembro de 2012

Mensagens 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
Jitendra Rajput
RE: LR 6.1.0 Service Builder
28 de Março de 2013 04:17
Resposta

Jitendra Rajput

Ranking: Liferay Master

Mensagens: 677

Data de entrada: 7 de Janeiro de 2011

Mensagens recentes

Check my post on build number space error.

http://itsliferay.blogspot.in/2012/04/build-number-deployment-error.html
mohammad azaruddin
RE: LR 6.1.0 Service Builder
28 de Março de 2013 04:20
Resposta

mohammad azaruddin

Ranking: Expert

Mensagens: 440

Data de entrada: 17 de Setembro de 2012

Mensagens 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