Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
Shabana Popat
Service builder not generating files in liferay 6.0.5
December 13, 2012 4:18 AM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

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:

 1
 2C:\liferayPortal\liferay-portal-6.0.5\liferay-plugins-sdk-5.2.3\portlets\buildservice-portlet>
 3ant -Dservice.file=docroot/WEB-INF/service.xml build-service      Buildfile: build.xml   
 4 build-service:
 5 [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 
 6 [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   
 7 [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
 8 [java] 09:26:34,921 INFO  [PortalImpl:277] Global lib directory /C:/liferayPortal/liferay-portal-6.0.5/tomcat-6.0.26/lib/ext/ 
 9 [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/
10 [java] com.liferay.portal.kernel.xml.DocumentException: www.liferay.com Nested exception: www.liferay.com 
11 [java]     at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:338)
12 [java]     at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:115)
13 [java]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:519) 
14 [java]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:404)   
15 [java]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:176)    
16 [java] Caused by: org.dom4j.DocumentException: www.liferay.com Nested exception: www.liferay.com      
17 [java]     at org.dom4j.io.SAXReader.read(SAXReader.java:484)       
18 [java]     at org.dom4j.io.SAXReader.read(SAXReader.java:264)      
19 [java]     at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:335) 
20 [java]     ... 4 more                               
21 [mkdir] Created dir: C:\liferayPortal\liferay-portal-6.0.5\liferay-plugins-sdk-5.2.3\portlets\buildservice-portlet\docroot\WEB-INF\service-classes      
22 [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.
23 [delete] Deleting directory C:\liferayPortal\liferay-portal-6.0.5\liferay-plugins-sdk-5.2.3\portlets\buildservice-portlet\docroot\WEB-INF\service-classes   
24 BUILD SUCCESSFUL                                                               



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