Error:
Service Builder is a
tool to automate the creation of classes and interfaces for service layer
and database persistence. Service Builder will create most of the common
code
required to implement
add, update, remove, find operations on the database
You can get more
detail about Liferay service builder for 6.1 version
I was getting an issue
from developer studio. So I tried to build Liferay services using ant in
console.
C:\Liferay\dev-sdk\portlets\my-portlet>ant
build-service
Buildfile: C:\Liferay\dev-sdk\portlets\my-portlet\build.xml
build-service:
[java] Java Result: 1
[echo] Error occurred during initialization of VM
[echo] Could not reserve enough space for object heap
[echo] Could not create the Java virtual machine.
BUILD FAILED
C:\Liferay\dev-sdk\\build-common-plugin.xml:207:
Service Builder generated exceptions.
I changed in Ant
runtime arguments in eclipse Run->Run
configuration", "VM arguments". But still I was getting same
above issue.
solution as follows:
Solution : I found , in my dev-sdk,
change the build-common-plugin.xml with following values.
I replaced
<jvmarg value="-Xms512m" />
<jvmarg value="-Xmx1024m" />
<jvmarg value="-Xmx1024m" />
to
<jvmarg value="-Xms128m" />
<jvmarg value="-Xmx512m" />
C:\Liferay\dev-sdk\portlets\my-portlet>ant
build-service
Buildfile:
C:\Liferay\dev-sdk\portlets\my-portlet\build.xml
build-service:
…..
BUILD SUCCESSFUL
Total time: 32 seconds
I was able to solve
the problem. Hope this will help.
Have a good time!
No comments:
Post a Comment