Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Eme-Okafor Nwachukwu
service builder error
March 24, 2013 7:55 AM
Answer

Eme-Okafor Nwachukwu

Rank: New Member

Posts: 6

Join Date: February 28, 2013

Recent Posts

please i have been experiencing this problem lately.when i want to build my liferay service.xml file ,i get this error
Java Result: 1
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

BUILD FAILED
C:\JCodes\liferay-plugins-sdk-6.1.1\build-common-plugin.xml:207: Service Builder generated exceptions.
i have tried all i could but to no avail. Can someone help me
Mohammad Azharuddin
RE: service builder error
March 24, 2013 9:55 AM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 479

Join Date: September 17, 2012

Recent Posts

Hi
I guess ur using LR 6.1.1
open build-common-plugin.xml file in plugin
go to line number 230..change the code as shown below

<java
classname="com.liferay.portal.tools.servicebuilder.ServiceBuilder"
classpathref="service.classpath"
fork="true"
newenvironment="true"
outputproperty="service.test.output"
>
<jvmarg value="-Xms256m" />
<jvmarg value="-Xmx512m" />
<jvmarg value="-Xss1024k" />
<jvmarg value="-XX:MaxPermSize=512m" />
<arg value="-Dexternal-properties=com/liferay/portal/tools/dependencies/portal-tools.properties" />
<arg value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger" />



Regards
azhar
Mohammad Azharuddin
RE: service builder error
March 24, 2013 9:56 AM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 479

Join Date: September 17, 2012

Recent Posts

If not working try modifying those 3 values