论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
issue : unable to generate the service builder classes in liferay 6.1 Kiran Kumar Boyini 2012年12月21日 上午1:46
RE: issue : unable to generate the service builder classes in liferay 6.1 Subhash Pavuskar 2012年12月21日 上午2:46
RE: issue : unable to generate the service builder classes in liferay 6.1 Hung Quang 2013年5月2日 上午3:15
RE: issue : unable to generate the service builder classes in liferay 6.1 David H Nebinger 2013年5月2日 上午9:24
RE: issue : unable to generate the service builder classes in liferay 6.1 Hung Quang 2013年5月3日 下午11:54
RE: issue : unable to generate the service builder classes in liferay 6.1 David H Nebinger 2013年5月5日 上午8:15
RE: issue : unable to generate the service builder classes in liferay 6.1 Hung Quang 2013年5月10日 上午2:38
RE: issue : unable to generate the service builder classes in liferay 6.1 David H Nebinger 2013年5月12日 下午6:28
RE: issue : unable to generate the service builder classes in liferay 6.1 Hung Quang 2013年5月13日 上午12:12
RE: issue : unable to generate the service builder classes in liferay 6.1 Prabhu Rajendran 2013年5月16日 下午4:28
RE: issue : unable to generate the service builder classes in liferay 6.1 Abdollah Esmaeilpour 2014年11月23日 上午5:26
issue : unable to generate the service builder classes in liferay 6.1 karthik reddy 2013年5月10日 上午4:52
RE: issue : unable to generate the service builder classes in liferay 6.1 Hung Quang 2013年5月11日 上午2:18
Kiran Kumar Boyini
issue : unable to generate the service builder classes in liferay 6.1
2012年12月21日 上午1:46
答复

Kiran Kumar Boyini

等级: Expert

帖子: 277

加入日期: 2011年6月2日

最近的帖子

Hi All,

I am using liferay 6.1.0-ce-ga4 version.I am trying to run the service builder for my entity.But here I am not able to generate

the any classes.

Please see the below logs details
 1
 2[color=#f72020]Buildfile: D:\liferay-6.1.0-ce-b4-21dec\plugins-sdk-6.1.0-ce-b4\portlets\MySamplePortlet-portlet\build.xml
 3build-service:
 4    [mkdir] Created dir: D:\liferay-6.1.0-ce-b4-21dec\plugins-sdk-6.1.0-ce-b4\portlets\MySamplePortlet-portlet\docroot\WEB-INF\classes
 5     [copy] Copied 2 empty directories to 1 empty directory under D:\liferay-6.1.0-ce-b4-21dec\plugins-sdk-6.1.0-ce-b4\portlets\MySamplePortlet-portlet\docroot\WEB-INF\classes
 6     [echo] Loading jar:file:/D:/liferay-6.1.0-ce-b4-21dec/liferay-portal-tomcat-6.1.0-ce-b4-20111110/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
 7     [echo] Dec 21, 2012 9:24:16 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
 8     [echo] INFO: Global lib directory /D:/liferay-6.1.0-ce-b4-21dec/liferay-portal-tomcat-6.1.0-ce-b4-20111110/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/lib/ext/
 9     [echo] Dec 21, 2012 9:24:16 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
10     [echo] INFO: Portal lib directory /D:/liferay-6.1.0-ce-b4-21dec/liferay-portal-tomcat-6.1.0-ce-b4-20111110/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/
11     [echo] 09:24:16,984 INFO  [EasyConf:122] Refreshed the configuration of all components
12     [echo] 09:24:17,468 INFO  [ConfigurationLoader:56] Properties for jar:file:/D:/liferay-6.1.0-ce-b4-21dec/liferay-portal-tomcat-6.1.0-ce-b4-20111110/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal loaded from [jar:file:/D:/liferay-6.1.0-ce-b4-21dec/liferay-portal-tomcat-6.1.0-ce-b4-20111110/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties, jar:file:/D:/liferay-6.1.0-ce-b4-21dec/liferay-portal-tomcat-6.1.0-ce-b4-20111110/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
13     [echo] Loading jar:file:/D:/liferay-6.1.0-ce-b4-21dec/liferay-portal-tomcat-6.1.0-ce-b4-20111110/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
14     [echo] Loading jar:file:/D:/liferay-6.1.0-ce-b4-21dec/liferay-portal-tomcat-6.1.0-ce-b4-20111110/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
15     [echo] java.lang.NullPointerException
16     [echo]     at com.liferay.portal.kernel.io.unsync.UnsyncStringReader.<init>(UnsyncStringReader.java:33)
17     [echo]     at com.liferay.util.xml.XMLSafeReader.<init>(XMLSafeReader.java:25)
18     [echo]     at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:423)
19     [echo]     at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:139)
20     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder._getContentDocument(ServiceBuilder.java:3833)
21     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder._getContent(ServiceBuilder.java:3756)
22     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:544)
23     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:430)
24     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:146)
25     [echo]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
26     [echo]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
27     [echo]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
28     [echo]     at java.lang.reflect.Method.invoke(Method.java:597)
29     [echo]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
30     [echo]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
31     [echo]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
32     [echo]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
33     [echo]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
34     [echo]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
35     [echo]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
36     [echo]     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
37     [echo]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
38     [echo]     at java.lang.reflect.Method.invoke(Method.java:597)
39     [echo]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
40     [echo]     at org.apache.tools.ant.Task.perform(Task.java:348)
41     [echo]     at org.apache.tools.ant.Target.execute(Target.java:357)
42     [echo]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
43     [echo]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
44     [echo]     at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
45     [echo]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
46     [echo]     at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
47     [echo]     at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
48     [echo]     at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423)
49     [echo]     at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137)
50    [mkdir] Created dir: D:\liferay-6.1.0-ce-b4-21dec\plugins-sdk-6.1.0-ce-b4\portlets\MySamplePortlet-portlet\docroot\WEB-INF\service-classes
51compile-java:
52      [zip] Warning: skipping zip archive D:\liferay-6.1.0-ce-b4-21dec\plugins-sdk-6.1.0-ce-b4\portlets\MySamplePortlet-portlet\docroot\WEB-INF\lib\MySamplePortlet-portlet-service.jar because no files were included.
53   [delete] Deleting directory D:\liferay-6.1.0-ce-b4-21dec\plugins-sdk-6.1.0-ce-b4\portlets\MySamplePortlet-portlet\docroot\WEB-INF\service-classes
54BUILD SUCCESSFUL
55Total time: 6 seconds[/color]


Thanks,
Kiran
Subhash Pavuskar
RE: issue : unable to generate the service builder classes in liferay 6.1
2012年12月21日 上午2:46
答复

Subhash Pavuskar

等级: Regular Member

帖子: 234

加入日期: 2012年3月12日

最近的帖子

Hi,
Can you share your service.xml file ?
Hung Quang
RE: issue : unable to generate the service builder classes in liferay 6.1
2013年5月2日 上午3:15
答复

Hung Quang

等级: New Member

帖子: 11

加入日期: 2013年4月8日

最近的帖子

i have same error
my service.xml


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_1_0.dtd">
<service-builder package-path="com.telsoft.portal">
<author>Administrator</author>
<namespace>Portal</namespace>

<entity name="Attachment" local-service="true" remote-service="true"
table="Attachment">

<!-- Primary key fields -->
<column name="attachmentId" type="long" primary="true" />

<!-- Audit fields -->
<column name="groupId" type="long" />
<column name="companyId" type="long" />

<!-- Other fields -->
<column name="entryId" type="long" />
<column name="entryClass" type="String" />
<column name="fileEntryId" type="long" />
<column name="folderId" type="long" />
<column name="fileName" type="String" />
<column name="imageId" type="long" />
<column name="extension" type="String" />

<!-- Sorting -->

<!-- Finder methods -->
<finder name="Entry" return-type="Collection">
<finder-column name="entryId" />
<finder-column name="entryClass" />
</finder>

<finder name="C_F_N" return-type="Attachment">
<finder-column name="entryClass" />
<finder-column name="folderId" />
<finder-column name="fileName" />
</finder>

</entity>

<entity name="PortletFolder" local-service="true"
remote-service="true" table="PortletFolder">
<!-- Primary key fields -->
<column name="id" type="long" primary="true" />

<!-- Other fields -->
<column name="portletId" type="String" />
<column name="folderId" type="long" />
<column name="description" type="String" />

<finder name="PortletId" return-type="Collection">
<finder-column name="portletId" />
</finder>

<finder name="FolderId" return-type="Collection">
<finder-column name="folderId" />
</finder>

<finder name="P_F" return-type="PortletFolder">
<finder-column name="portletId" />
<finder-column name="folderId" />
</finder>

<reference package-path="com.liferay.counter" entity="Counter" />
</entity>

<exceptions></exceptions>
</service-builder>


help me!
David H Nebinger
RE: issue : unable to generate the service builder classes in liferay 6.1
2013年5月2日 上午9:24
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 11060

加入日期: 2006年9月1日

最近的帖子

Hung Quang:
i have same error


I doubt it, since the OP's stack trace indicates he was using 6.1 beta 4...
Hung Quang
RE: issue : unable to generate the service builder classes in liferay 6.1
2013年5月3日 下午11:54
答复

Hung Quang

等级: New Member

帖子: 11

加入日期: 2013年4月8日

最近的帖子

David H Nebinger:
Hung Quang:
i have same error


I doubt it, since the OP's stack trace indicates he was using 6.1 beta 4...



Thanks for reply!

I using 6.1.1 and I create a ext-plugin

I write service.xml, I run build-service. I have problem

 1Buildfile: D:\LIFERAY\Sdk liferay\liferay-plugins-sdk-6.1.1\ext\Vasportal-ext\build.xml
 2build-service:
 3     [echo] .
 4     [echo] WARNING: Support for ServiceBuilder in EXT plugins will be deprecated in future
 5     [echo] versions. EXT plugins are designed to override the portal's core code that
 6     [echo] cannot be done with hooks, layout templates, portlets, or themes. EXT plugins
 7     [echo] are not meant to contain new custom services. Please migrate your service.xml to
 8     [echo] a portlet plugin.
 9     [echo]         
10     [java] Loading jar:file:/D:/LIFERAY/Tomcat%20Liferay/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
11     [java] May 4, 2013 1:50:44 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
12     [java] INFO: Global shared lib directory /D:/LIFERAY/Sdk liferay/liferay-plugins-sdk-6.1.1/lib/
13     [java] May 4, 2013 1:50:44 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
14     [java] INFO: Global lib directory /D:/LIFERAY/Tomcat Liferay/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/lib/ext/
15     [java] May 4, 2013 1:50:44 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
16     [java] INFO: Portal lib directory /D:/LIFERAY/Tomcat Liferay/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/
17     [java] May 4, 2013 1:50:44 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
18     [java] INFO: Properties for portal loaded from [file:/D:/LIFERAY/Tomcat%20Liferay/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/classes/portal-ext.properties, jar:file:/D:/LIFERAY/Tomcat%20Liferay/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties, jar:file:/D:/LIFERAY/Tomcat%20Liferay/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
19     [java] Loading jar:file:/D:/LIFERAY/Tomcat%20Liferay/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
20     [java] Loading jar:file:/D:/LIFERAY/Tomcat%20Liferay/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
21     [java] Loading file:/D:/LIFERAY/Tomcat%20Liferay/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/classes/portal-ext.properties
22     [java] java.lang.NullPointerException
23     [java]     at com.liferay.portal.kernel.io.unsync.UnsyncStringReader.<init>(UnsyncStringReader.java:34)
24     [java]     at com.liferay.util.xml.XMLSafeReader.<init>(XMLSafeReader.java:25)
25     [java]     at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:409)
26     [java]     at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:155)
27     [java]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder._getContentDocument(ServiceBuilder.java:4002)
28     [java]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder._getContent(ServiceBuilder.java:3925)
29     [java]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:559)
30     [java]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:151)
31     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
32     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
33     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
34     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
35     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
36     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
37     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
38     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
39     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
40     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
41     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
42     [java]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
43     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
44     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
45     [java]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
46     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
47     [java]     at org.apache.tools.ant.Target.execute(Target.java:392)
48     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
49     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
50     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
51     [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
52     [java]     at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
53     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
54     [java]     at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
55     [java]     at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
56BUILD SUCCESSFUL
57Total time: 6 seconds


My service.xml

 1<?xml version="1.0" encoding="UTF-8"?>
 2<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_1_0.dtd">
 3<service-builder package-path="com.telsoft.portal">
 4    <author>Administrator</author>
 5    <namespace>Portal</namespace>
 6
 7    <entity name="Attachment" local-service="true" remote-service="true"
 8        table="Attachment">
 9
10        <!-- Primary key fields -->
11        <column name="attachmentId" type="long" primary="true" />
12
13        <!-- Audit fields -->
14        <column name="groupId" type="long" />
15        <column name="companyId" type="long" />
16
17        <!-- Other fields -->
18        <column name="entryId" type="long" />
19        <column name="entryClass" type="String" />
20        <column name="fileEntryId" type="long" />
21        <column name="folderId" type="long" />
22        <column name="fileName" type="String" />
23        <column name="imageId" type="long" />
24        <column name="extension" type="String" />
25
26        <!-- Sorting -->
27
28        <!-- Finder methods -->
29        <finder name="Entry" return-type="Collection">
30            <finder-column name="entryId" />
31            <finder-column name="entryClass" />
32        </finder>
33
34        <finder name="C_F_N" return-type="Attachment">
35            <finder-column name="entryClass" />
36            <finder-column name="folderId" />
37            <finder-column name="fileName" />
38        </finder>
39
40    </entity>
41
42    <entity name="PortletFolder" local-service="true"
43        remote-service="true" table="PortletFolder">
44        <!-- Primary key fields -->
45        <column name="id" type="long" primary="true" />
46
47        <!-- Other fields -->
48        <column name="portletId" type="String" />
49        <column name="folderId" type="long" />
50        <column name="description" type="String" />
51
52        <finder name="PortletId" return-type="Collection">
53            <finder-column name="portletId" />
54        </finder>
55
56        <finder name="FolderId" return-type="Collection">
57            <finder-column name="folderId" />
58        </finder>
59
60        <finder name="P_F" return-type="PortletFolder">
61            <finder-column name="portletId" />
62            <finder-column name="folderId" />
63        </finder>
64
65        <reference package-path="com.liferay.counter" entity="Counter" />
66    </entity>
67
68    <exceptions></exceptions>
69</service-builder>


Help me fix error!
Please!
附件

附件: portal-ext.png (220.9k)
David H Nebinger
RE: issue : unable to generate the service builder classes in liferay 6.1
2013年5月5日 上午8:15
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 11060

加入日期: 2006年9月1日

最近的帖子

See the warning message about using SB in an EXT plugin, how it's deprecated?

You should not be ignoring that error. Move your SB code to a separate plugin and try again.
Hung Quang
RE: issue : unable to generate the service builder classes in liferay 6.1
2013年5月10日 上午2:38
答复

Hung Quang

等级: New Member

帖子: 11

加入日期: 2013年4月8日

最近的帖子

David H Nebinger:
See the warning message about using SB in an EXT plugin, how it's deprecated?

You should not be ignoring that error. Move your SB code to a separate plugin and try again.



Thanks for reply David!

But I don't understand the separation? where is the separation in my ext-plugin project?
karthik reddy
issue : unable to generate the service builder classes in liferay 6.1
2013年5月10日 上午4:52
答复

karthik reddy

等级: Junior Member

帖子: 50

加入日期: 2013年4月8日

最近的帖子

Hi,
Please try it again.Your code is working fine in the version 6.1.1 GA2 version
Hung Quang
RE: issue : unable to generate the service builder classes in liferay 6.1
2013年5月11日 上午2:18
答复

Hung Quang

等级: New Member

帖子: 11

加入日期: 2013年4月8日

最近的帖子

give me your file build.username.properties in your SDK plugin, please!
David H Nebinger
RE: issue : unable to generate the service builder classes in liferay 6.1
2013年5月12日 下午6:28
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 11060

加入日期: 2006年9月1日

最近的帖子

Hung Quang:
But I don't understand the separation? where is the separation in my ext-plugin project?


EXT plugins are meant for overriding core Liferay functionality. Adding your own service.xml layer is not overriding core functionality, it's extending it to cover new table(s) that are not part of the core.

Create a separate plugin to host your service.xml file, and strip your extension code out of the EXT plugin.

Trust me, you only want to use an EXT plugin where it is absolutely necessary. It is the most fragile plugin in the Liferay ecosystem as it is the most likely type of plugin that breaks during Liferay upgrades.

I'm willing to bet that whatever you're trying to do in an EXT plugin is better handled as a different type of plugin (or plugins) altogether.
Hung Quang
RE: issue : unable to generate the service builder classes in liferay 6.1
2013年5月13日 上午12:12
答复

Hung Quang

等级: New Member

帖子: 11

加入日期: 2013年4月8日

最近的帖子

David H Nebinger:
Hung Quang:
But I don't understand the separation? where is the separation in my ext-plugin project?


EXT plugins are meant for overriding core Liferay functionality. Adding your own service.xml layer is not overriding core functionality, it's extending it to cover new table(s) that are not part of the core.

Create a separate plugin to host your service.xml file, and strip your extension code out of the EXT plugin.

Trust me, you only want to use an EXT plugin where it is absolutely necessary. It is the most fragile plugin in the Liferay ecosystem as it is the most likely type of plugin that breaks during Liferay upgrades.

I'm willing to bet that whatever you're trying to do in an EXT plugin is better handled as a different type of plugin (or plugins) altogether.


You can give me a example about SB ext-plugin that run build-service will have not error null point emoticon
Prabhu Rajendran
RE: issue : unable to generate the service builder classes in liferay 6.1
2013年5月16日 下午4:28
答复

Prabhu Rajendran

等级: New Member

帖子: 1

加入日期: 2013年5月15日

最近的帖子

Hi Hung Quang,

Are you able fix this issue? Please let me know the solution if it is resolved.

Thanks,
Prabhu
Abdollah Esmaeilpour
RE: issue : unable to generate the service builder classes in liferay 6.1
2014年11月23日 上午5:26
答复

Abdollah Esmaeilpour

等级: Junior Member

帖子: 42

加入日期: 2009年8月22日

最近的帖子

I had a similar problem. I have specified a wrong path as service.file for "build-service" target in build.xml. By correcting the path, my problem was solved.