Foros de discusión
Servicebuilder Problems with certain entitynames
Andreas Reidt, modificado hace 10 años.
Servicebuilder Problems with certain entitynames
New Member Mensajes: 4 Fecha de incorporación: 30/10/12 Mensajes recientes
Hello everyone,
I got several issues migrating Liferay from 6.1 to 6.2. Especially considering the Servicebuilder. I get a Error because of the wrong entityname.
I have the following service.xml:
And in Eclipse i got the following Error in the Code:
Basically i found that it has something to to do with the term "Service" in CloudService. If i make new entities with Service in the name i get the same Error. Switching to another Name eliminates this Problem. But in my case switching this Name makes a big Effort. Didnt had any of the problems in 6.1.
Anyone else get in touch with this problem? Is there a guide from Switching the Service Builder from 6.1 to 6.2?
Help would be appreciated.
Regards,
Andreas
I got several issues migrating Liferay from 6.1 to 6.2. Especially considering the Servicebuilder. I get a Error because of the wrong entityname.
I have the following service.xml:
<entity name="CloudService" local-service="true" remote-service="true" cache-enabled="false"> <!-- cache enabled false wegen Häufigeren Update bzgl. nicht Übernahme von Löschungen beispielsweise #3366 pfr -->
<!-- PK fields -->
<column name="serviceId" type="long" primary="true" />
</entity>
And in Eclipse i got the following Error in the Code:
[javac] 1. ERROR in C:\Dev\v4c\liferay-plugins-sdk-6.2.0\portlets\AnotherTestPortletJSF-portlet\docroot\WEB-INF\src\value4cloud\dbmgmt\service\base\CloudServiceLocalServiceBaseImpl.java (at line 237)
[javac] public CloudService getCloudService(long serviceId)
[javac] throws PortalException, SystemException {
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The method getCloudService(long) of type CloudServiceLocalServiceBaseImpl must override or implement a supertype method
Basically i found that it has something to to do with the term "Service" in CloudService. If i make new entities with Service in the name i get the same Error. Switching to another Name eliminates this Problem. But in my case switching this Name makes a big Effort. Didnt had any of the problems in 6.1.
Anyone else get in touch with this problem? Is there a guide from Switching the Service Builder from 6.1 to 6.2?
Help would be appreciated.
Regards,
Andreas
Andreas Reidt, modificado hace 7 años.
RE: Servicebuilder Problems with certain entitynames
New Member Mensajes: 4 Fecha de incorporación: 30/10/12 Mensajes recientes
Suprisingly i came back to this issue while investigating a new project with liferay 6.2.
Still der Problem exists with ga6. Now the entity name ist FileService instead of CloudService
Still der Problem exists with ga6. Now the entity name ist FileService instead of CloudService
Jack Bakker, modificado hace 7 años.
RE: Servicebuilder Problems with certain entitynames
Liferay Master Mensajes: 978 Fecha de incorporación: 3/01/10 Mensajes recientes
As a workaround, I use Servize (note the z instead of s) in entity names.