Search code examples
javaeclipseantliferayliferay-6

Liferay service building fails


I was getting the following error when i tried to use liferay-plugins-sdk-6.2.0 with my liferay-portal-6.2.0-ce-ga1 to build service.xml.

BUILD FAILED
C:\Users\[username]\Documents\liferay-plugins-sdk-6.2.0\build-common-plugin.xml: The following error occurred while executing this line: 
C:\Users\[username]\Documents\liferay-plugins-sdk-6.2.0\build-common-plugin.xml:118: No suitable relative path from C:\Users\[username]\Documents\liferay-plugins-sdk-6.2.0\portlets\billingform-portlet to D:\Liferay\liferay-portal-6.2.0-ce-ga1\tomcat-7.0.42\webapps\ROOT\WEB-INF\classes

When I searched for a solution, I found that this issue was solved by using previous sdk version, so I used liferay-plugins-sdk-6.1.1, created a sample project and tried again, which gave me next error.

BUILD FAILED
D:\liferay-plugins-sdk-6.1.1\build-common-plugin.xml:210: The following error occurred while executing this line:
D:\liferay-plugins-sdk-6.1.1\build-common-plugin.xml:71: D:\bundles\tomcat-7.0.27\lib\ext does not exist.

But the thing is the liferay-plugins-sdk-6.2.0 with liferay-portal-6.2.0-ce-ga1 combination worked in another machine. I am a newbie to liferay. Please help and also please tell if any more details are required.


Solution

  • Please configure your local development environemnt properly. This errors comes when your plugin-sdk is refering to wrong path of liferay-tomcat bundle defined in build.username.properties file.

    For proper guidance for Plugins SDK Configuration, Refer to link

    Also never mix-up different Liferay Versions sdk and tomcat.

    Regards,