Fórum
Service builder not generating files in liferay 6.0.5
Shabana Popat, modificado 11 Anos atrás.
Service builder not generating files in liferay 6.0.5
Junior Member Postagens: 39 Data de Entrada: 13/12/12 Postagens Recentes
I'm trying to use service builder, but when I execute command ant build-service on command line it's not creating files.
I'm using liferay-portal-6.0.5, liferay-plugins-sdk-5.0.3 and jdk 1.7
Here is what is shown in console:
its give the notice "Build Sucessfull", but has some exception and then the files isn't generate.
Can someone help me, please.
thanks in advance.
Shabana
I'm using liferay-portal-6.0.5, liferay-plugins-sdk-5.0.3 and jdk 1.7
Here is what is shown in console:
C:\liferayPortal\liferay-portal-6.0.5\liferay-plugins-sdk-5.2.3\portlets\buildservice-portlet>
ant -Dservice.file=docroot/WEB-INF/service.xml build-service Buildfile: build.xml
build-service:
[java] Loading jar:file:/C:/liferayPortal/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
[java] Loading jar:file:/C:/liferayPortal/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
[java] Loading jar:file:/C:/liferayPortal/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
[java] 09:26:34,921 INFO [PortalImpl:277] Global lib directory /C:/liferayPortal/liferay-portal-6.0.5/tomcat-6.0.26/lib/ext/
[java] 09:26:34,928 INFO [PortalImpl:297] Portal lib directory /C:/liferayPortal/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/
[java] com.liferay.portal.kernel.xml.DocumentException: www.liferay.com Nested exception: www.liferay.com
[java] at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:338)
[java] at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:115)
[java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:519)
[java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:404)
[java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:176)
[java] Caused by: org.dom4j.DocumentException: www.liferay.com Nested exception: www.liferay.com
[java] at org.dom4j.io.SAXReader.read(SAXReader.java:484)
[java] at org.dom4j.io.SAXReader.read(SAXReader.java:264)
[java] at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:335)
[java] ... 4 more
[mkdir] Created dir: C:\liferayPortal\liferay-portal-6.0.5\liferay-plugins-sdk-5.2.3\portlets\buildservice-portlet\docroot\WEB-INF\service-classes
[zip] Warning: skipping zip archive C:\liferayPortal\liferay-portal-6.0.5\liferay-plugins-sdk-5.2.3\portlets\buildservice-portlet\docroot\WEB-INF\lib\buildservice-portlet-service.jar because no files were included.
[delete] Deleting directory C:\liferayPortal\liferay-portal-6.0.5\liferay-plugins-sdk-5.2.3\portlets\buildservice-portlet\docroot\WEB-INF\service-classes
BUILD SUCCESSFUL
</init></init>
its give the notice "Build Sucessfull", but has some exception and then the files isn't generate.
Can someone help me, please.
thanks in advance.
Shabana
Muniraj saravanan, modificado 11 Anos atrás.
RE: Service builder not generating files in liferay 6.0.5
Junior Member Postagens: 95 Data de Entrada: 01/06/11 Postagens Recentes
use liferay-plugins-sdk-6.05
thanks
Saravanan
thanks
Saravanan
Shabana Popat, modificado 11 Anos atrás.
RE: Service builder not generating files in liferay 6.0.5
Junior Member Postagens: 39 Data de Entrada: 13/12/12 Postagens Recentes
I changed my sdk version to 6.0.5, but i still have same error. I havent any idea about what is wrong.
Shabana Popat, modificado 11 Anos atrás.
RE: Service builder not generating files in liferay 6.0.5
Junior Member Postagens: 39 Data de Entrada: 13/12/12 Postagens Recentes
Here is my server.xml:
I dont know what's wrong in my code. I'm following a tutorial...
<!--?xml version="1.0"?-->
<service-builder package-path="com.sample.portlet.library">
<namespace>Library</namespace>
<entity name="Book" local-service="true" remote-service="true">
<!-- PK fields -->
<column name="bookId" type="long" primary="true" />
<!-- Group instance -->
<column name="groupId" type="long" />
<!-- Audit fields -->
<column name="companyId" type="long" />
<column name="userId" type="long" />
<column name="userName" type="String" />
<column name="createDate" type="Date" />
<column name="modifiedDate" type="Date" />
<!-- Other fields -->
<column name="title" type="String" />
</entity>
</service-builder>
I dont know what's wrong in my code. I'm following a tutorial...
Shabana Popat, modificado 11 Anos atrás.
RE: Service builder not generating files in liferay 6.0.5
Junior Member Postagens: 39 Data de Entrada: 13/12/12 Postagens Recentes
I got, I changed my service.xml with this code, and then everything worked
server.xml
server.xml
<!--?xml version="1.0"?-->
<service-builder package-path="com.sample.portlet.library">
<namespace>Library</namespace>
<entity name="Book" local-service="true" remote-service="true">
<!-- PK fields -->
<column name="bookId" type="long" primary="true" />
<!-- Group instance -->
<column name="groupId" type="long" />
<!-- Audit fields -->
<column name="companyId" type="long" />
<column name="userId" type="long" />
<column name="userName" type="String" />
<column name="createDate" type="Date" />
<column name="modifiedDate" type="Date" />
<!-- Other fields -->
<column name="title" type="String" />
</entity>
</service-builder>
sheela mk, modificado 11 Anos atrás.
RE: Service builder not generating files in liferay 6.0.5
Regular Member Postagens: 111 Data de Entrada: 17/02/12 Postagens Recentes
Hmm..Thats nice Idea..Getting work is Done!!!
sheela mk, modificado 11 Anos atrás.
RE: Service builder not generating files in liferay 6.0.5
Regular Member Postagens: 111 Data de Entrada: 17/02/12 Postagens Recentes
hai..its parser exception..Some syntax Error in service.xml..file..
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: Service builder not generating files in liferay 6.0.5
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Liferay 6.0.5 doesn't support jdk 1.7. Use Oracle jdk 1.6. I think 6.0.5 sdk had a bug which was not fixed. I think I had to build it from the liferay source.
Shabana Popat, modificado 11 Anos atrás.
RE: Service builder not generating files in liferay 6.0.5
Junior Member Postagens: 39 Data de Entrada: 13/12/12 Postagens RecentesHitoshi Ozawa:
Liferay 6.0.5 doesn't support jdk 1.7. Use Oracle jdk 1.6. I think 6.0.5 sdk had a bug which was not fixed. I think I had to build it from the liferay source.
Hi Hitoshi, I hadn't problems with Liferay 6.0.5 and jdk 1.7. My problem was different versions between liferay and plugins-sdk. something in my code was wrong too..
thanks
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: Service builder not generating files in liferay 6.0.5
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Nice to hear that you have it working!
About the jdk version, you'll also have to take it into account the version of jdk which the liferay will be running. In general, it's better to stick with the approved jdk version.
About the jdk version, you'll also have to take it into account the version of jdk which the liferay will be running. In general, it's better to stick with the approved jdk version.