Foren

Service Builder Portlet

thumbnail
Siva K, geändert vor 7 Jahren.

Service Builder Portlet

New Member Beiträge: 20 Beitrittsdatum: 18.06.13 Neueste Beiträge
Hi ,

I have created service builder portlet . Here issue is if I create any method in local service impl (ServiceRequestLocalServiceImpl) class then its not generating after service build

my service.xml file

<service-builder package-path="com.web.service.builder.request">
<namespace>ServiceRequest</namespace>
<entity name="ServiceRequest" uuid="true" local-service="true" remote-service="true" data-source="noDataSource">
<column name="requestId" type="long" primary="true" />
<column name="userName" type="String" />
</entity>
</service-builder>

I am using maven command clean package liferay:build-service to build the service builder portlet.

there is no error in the build . I got build success message but method is not generating when I look at the uitlity class or ServiceRequestLocalService interface.

Please help me on this.
thumbnail
Andrew Jardine, geändert vor 7 Jahren.

RE: Service Builder Portlet

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Hi Siva,

Can you share with us the version of Liferay you are using (including GA for community, or SP for EE) and the code for the "ServiceRequestLocalServiceImpl" class please?
thumbnail
Abhishek Jain, geändert vor 7 Jahren.

RE: Service Builder Portlet

Regular Member Beiträge: 226 Beitrittsdatum: 20.08.16 Neueste Beiträge
Can you check the entry of custom entity in the classname_ table? Tell me if it is there or not..
thumbnail
Andrew Jardine, geändert vor 7 Jahren.

RE: Service Builder Portlet

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
His question has nothing to do with the table. He is altering the *Impl file to decorate the service with additional functionality but the methods are not showing. Most common cause of this is either scope (specifying private or protected -- methods have to be public) or, specifying "static" accidentally because the *LocalServiceUtil uses static methods. Both of these scenarios will cause the method definition to be ignored by the build-service goal.
thumbnail
Siva K, geändert vor 7 Jahren.

RE: Service Builder Portlet

New Member Beiträge: 20 Beitrittsdatum: 18.06.13 Neueste Beiträge
Thanks for valuable comments. This is environment issues. Now Its working as expected .
thumbnail
Andrew Jardine, geändert vor 7 Jahren.

RE: Service Builder Portlet

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Hi Siva,

Glad to hear that you got it resolved. Can you share with us what the environment issue was that caused the problem in the first place? it might help the next person to come across this thread -- at least give them one more thing to check.