掲示板
Service builder issue
Hi all,
I have a problem with the service builder. I've wrote this service.xml
then i go to liferay->build service to build the file but I have this error
The packages are created in web-inf/src but there isn't EventiLocalserviceUtil in com.test.service.impl and so i can't use it to implement my custom class! Where I can find this class and how can I solve this problem?
I have a problem with the service builder. I've wrote this service.xml
<!--?xml version="1.0" encoding="UTF-8"?-->
<service-builder package-path="com.test">
<namespace>Events</namespace>
<entity name="Eventi" local-service="true" remote-service="true">
<!-- PK fields -->
<column name="eventId" type="long" primary="true" />
<!-- Audit fields -->
<column name="name" type="String" />
<column name="city" type="String" />
<column name="place" type="String" />
<column name="date" type="Date" />
<column name="time" type="Date" />
<column name="price" type="long" />
<column name="category" type="String" />
<column name="createDate" type="Date" />
<column name="modifiedDate" type="Date" />
<finder name="EventId" return-type="Collection">
<finder-column name="eventId"></finder-column>
</finder>
<finder name="City" return-type="Collection">
<finder-column name="city"></finder-column>
</finder>
<finder name="Date" return-type="Collection">
<finder-column name="date"></finder-column>
</finder>
<finder name="Category" return-type="Collection">
<finder-column name="category"></finder-column>
</finder>
</entity>
</service-builder>
then i go to liferay->build service to build the file but I have this error
BUILD FAILED
C:\liferay-plugins-sdk-6.1.1\build-common-plugin.xml:288: The following error occurred while executing this line:
C:\liferay-plugins-sdk-6.1.1\build-common.xml:95: Compile failed; see the compiler error output for details.
The packages are created in web-inf/src but there isn't EventiLocalserviceUtil in com.test.service.impl and so i can't use it to implement my custom class! Where I can find this class and how can I solve this problem?
11年前 に Devendra Patel によって更新されました。
Re: [Liferay Forums][3. Development] Service builder issue
Junior Member 投稿: 71 参加年月日: 11/09/26 最新の投稿
Hi Matt,
You have not declared author tag in your service.xml file.I think author
tag is mandatory.Please check DTD of service.xml.
Regards,
Dev Patel
On Sun, Feb 3, 2013 at 10:35 PM, Matt S. from liferay.com <
forums@liferay.com> wrote:
> Hi all,
>
> I have a problem with the service builder. I've wrote this service.xml
> 1
> 2<?xml version="1.0" encoding="UTF-8"?>
> 3<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder
> 6.0.0//EN"
> 4"http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd">
> 5<service-builder package-path="com.test">
> 6 <namespace>Events</namespace>
> 7 <entity name="Eventi" local-service="true" remote-service="true">
> 8 <!-- PK fields -->
> 9 <column name="eventId" type="long" primary="true" />
> 10 <!-- Audit fields -->
> 11 <column name="name" type="String"/>
> 12 <column name="city" type="String"/>
> 13 <column name="place" type="String"/>
> 14 <column name="date" type="Date"/>
> 15 <column name="time" type="Date"/>
> 16 <column name="price" type="long"/>
> 17 <column name="category" type="String"/>
> 18 <column name="createDate" type="Date" />
> 19 <column name="modifiedDate" type="Date" />
> 20 <finder name="EventId" return-type="Collection">
> 21 <finder-column name="eventId"></finder-column>
> 22 </finder>
> 23 <finder name="City" return-type="Collection">
> 24 <finder-column name="city"></finder-column>
> 25 </finder>
> 26 <finder name="Date" return-type="Collection">
> 27 <finder-column name="date"></finder-column>
> 28 </finder>
> 29 <finder name="Category" return-type="Collection">
> 30 <finder-column name="category"></finder-column>
> 31 </finder>
> 32 </entity>
> 33 </service-builder>
>
>
> then i go to liferay->build service to build the file but I have this error
> 1
> 2BUILD FAILED
> 3C:\liferay-plugins-sdk-6.1.1\build-common-plugin.xml:288: The following
> error occurred while executing this line:
> 4C:\liferay-plugins-sdk-6.1.1\build-common.xml:95: Compile failed; see
> the compiler error output for details.
>
> Te packages ar created in web-inf/src but there isn't in
> EventiLocalserviceUtil in com.test.service.impl and so i can't use it to
> implement my custom class! Where I can find this class and how can I solve
> this problem?
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/21173355
> --
> Thanks, Liferay.com Forums <http://http://www.liferay.com>
You have not declared author tag in your service.xml file.I think author
tag is mandatory.Please check DTD of service.xml.
Regards,
Dev Patel
On Sun, Feb 3, 2013 at 10:35 PM, Matt S. from liferay.com <
forums@liferay.com> wrote:
> Hi all,
>
> I have a problem with the service builder. I've wrote this service.xml
> 1
> 2<?xml version="1.0" encoding="UTF-8"?>
> 3<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder
> 6.0.0//EN"
> 4"http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd">
> 5<service-builder package-path="com.test">
> 6 <namespace>Events</namespace>
> 7 <entity name="Eventi" local-service="true" remote-service="true">
> 8 <!-- PK fields -->
> 9 <column name="eventId" type="long" primary="true" />
> 10 <!-- Audit fields -->
> 11 <column name="name" type="String"/>
> 12 <column name="city" type="String"/>
> 13 <column name="place" type="String"/>
> 14 <column name="date" type="Date"/>
> 15 <column name="time" type="Date"/>
> 16 <column name="price" type="long"/>
> 17 <column name="category" type="String"/>
> 18 <column name="createDate" type="Date" />
> 19 <column name="modifiedDate" type="Date" />
> 20 <finder name="EventId" return-type="Collection">
> 21 <finder-column name="eventId"></finder-column>
> 22 </finder>
> 23 <finder name="City" return-type="Collection">
> 24 <finder-column name="city"></finder-column>
> 25 </finder>
> 26 <finder name="Date" return-type="Collection">
> 27 <finder-column name="date"></finder-column>
> 28 </finder>
> 29 <finder name="Category" return-type="Collection">
> 30 <finder-column name="category"></finder-column>
> 31 </finder>
> 32 </entity>
> 33 </service-builder>
>
>
> then i go to liferay->build service to build the file but I have this error
> 1
> 2BUILD FAILED
> 3C:\liferay-plugins-sdk-6.1.1\build-common-plugin.xml:288: The following
> error occurred while executing this line:
> 4C:\liferay-plugins-sdk-6.1.1\build-common.xml:95: Compile failed; see
> the compiler error output for details.
>
> Te packages ar created in web-inf/src but there isn't in
> EventiLocalserviceUtil in com.test.service.impl and so i can't use it to
> implement my custom class! Where I can find this class and how can I solve
> this problem?
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/21173355
> --
> Thanks, Liferay.com Forums <http://http://www.liferay.com>
11年前 に Subhash Pavuskar によって更新されました。
RE: Service builder issue
Regular Member 投稿: 234 参加年月日: 12/03/13 最新の投稿
I've seen in the documentation but in service.xml there isn't the author tag. Where I have to put in service.xml? and what I have to wrote in?
11年前 に Devendra Patel によって更新されました。
Re: [Liferay Forums][3. Development] RE: Service builder issue
Junior Member 投稿: 71 参加年月日: 11/09/26 最新の投稿
Hi Matt,
According DTD you have to put author tag above namespace tag.
Regards,
Dev Patel
On Sun, Feb 3, 2013 at 11:18 PM, Matt S. from liferay.com <
forums@liferay.com> wrote:
> I've seen in the documentation but in service.xml there isn't the author
> tag. Where I have to put in service.xml? and what I have to wrote in?
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/21173576
> --
> Thanks, Liferay.com Forums <http://http://www.liferay.com>
According DTD you have to put author tag above namespace tag.
Regards,
Dev Patel
On Sun, Feb 3, 2013 at 11:18 PM, Matt S. from liferay.com <
forums@liferay.com> wrote:
> I've seen in the documentation but in service.xml there isn't the author
> tag. Where I have to put in service.xml? and what I have to wrote in?
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/21173576
> --
> Thanks, Liferay.com Forums <http://http://www.liferay.com>