Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mohammad Azharuddin
LR 6.1.0 Service Builder
March 27, 2013 11:32 PM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 474

Join Date: September 17, 2012

Recent Posts

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
March 27, 2013 11:42 PM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

Hi,

Remove jar from WEB-INF->Lib folder and then rebuild your service !!
Mohammad Azharuddin
RE: LR 6.1.0 Service Builder
March 27, 2013 11:54 PM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 474

Join Date: September 17, 2012

Recent Posts

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
March 27, 2013 11:56 PM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

your tomcat is in running condition right ?
Mohammad Azharuddin
RE: LR 6.1.0 Service Builder
March 27, 2013 11:57 PM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 474

Join Date: September 17, 2012

Recent Posts

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 Azharuddin
RE: LR 6.1.0 Service Builder
March 27, 2013 11:57 PM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 474

Join Date: September 17, 2012

Recent Posts

Hi

Yes.server is currently running
Subhash Pavuskar
RE: LR 6.1.0 Service Builder
March 28, 2013 12:04 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

can you share your service.xml code and if error message from console !!!
Mohammad Azharuddin
RE: LR 6.1.0 Service Builder
March 28, 2013 12:17 AM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 474

Join Date: September 17, 2012

Recent Posts

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
March 28, 2013 12:13 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

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 Azharuddin
RE: LR 6.1.0 Service Builder
March 28, 2013 1:18 AM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 474

Join Date: September 17, 2012

Recent Posts

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
March 28, 2013 1:45 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

Yeah i know bcs even i too faced same problem long back !!
Jitendra Rajput
RE: LR 6.1.0 Service Builder
March 28, 2013 3:29 AM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 858

Join Date: January 7, 2011

Recent Posts

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 Azharuddin
RE: LR 6.1.0 Service Builder
March 28, 2013 3:45 AM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 474

Join Date: September 17, 2012

Recent Posts

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
March 28, 2013 4:08 AM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 858

Join Date: January 7, 2011

Recent Posts

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 Azharuddin
RE: LR 6.1.0 Service Builder
March 28, 2013 4:13 AM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 474

Join Date: September 17, 2012

Recent Posts

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
March 28, 2013 4:17 AM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 858

Join Date: January 7, 2011

Recent Posts

Check my post on build number space error.

http://itsliferay.blogspot.in/2012/04/build-number-deployment-error.html
Mohammad Azharuddin
RE: LR 6.1.0 Service Builder
March 28, 2013 4:20 AM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 474

Join Date: September 17, 2012

Recent Posts

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