Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Service Builder fails because of 404 file not found on server
Hi team,
I am trying to build service in ant but it fails with the following error:
Buildfile: D:\Installation
Files\liferay-portal-tomcat-6.2-ce-ga5-20151119152357409\liferay-plugins-sdk-6.2\portlets\EmployeePortlet-portlet\build.xml
[get] Getting:
http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] To:
C:\Users\x\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Error opening connection java.io.FileNotFoundException:
http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Error opening connection java.io.FileNotFoundException:
http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Error opening connection java.io.FileNotFoundException:
http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Can't get
http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
to
C:\Users\x\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Getting:
http://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] To:
C:\Users\x\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get]
http://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
moved to
https://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get]
https://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
permanently moved to http://repository-cdn.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
BUILD FAILED
D:\Installation
Files\liferay-portal-tomcat-6.2-ce-ga5-20151119152357409\liferay-plugins-sdk-6.2\portlets\EmployeePortlet-portlet\build.xml:5:
The following error occurred while executing this line:
D:\Installation
Files\liferay-portal-tomcat-6.2-ce-ga5-20151119152357409\liferay-plugins-sdk-6.2\portlets\build-common-portlet.xml:5:
The following error occurred while executing this line:
D:\Installation
Files\liferay-portal-tomcat-6.2-ce-ga5-20151119152357409\liferay-plugins-sdk-6.2\build-common-plugin.xml:5:
The following error occurred while executing this line:
D:\Installation
Files\liferay-portal-tomcat-6.2-ce-ga5-20151119152357409\liferay-plugins-sdk-6.2\build-common.xml:60:
The following error occurred while executing this line:
D:\Installation
Files\liferay-portal-tomcat-6.2-ce-ga5-20151119152357409\liferay-plugins-sdk-6.2\build-common-ivy.xml:130:
The following error occurred while executing this line:
D:\Installation
Files\liferay-portal-tomcat-6.2-ce-ga5-20151119152357409\liferay-plugins-sdk-6.2\build-common-ivy.xml:81:
Redirection detected from https to http. Protocol switch unsafe, not allowed.
It seems to me like the jar file is missing on server. The last message is related to https and http protocol as well.
Is there something that I can fix locally?
Thanks guys
Well, there has been some effort I believe to change the locations/urls for assets. The last message about "moved to repository-cdn.liferay.com..." is demonstrative of this.
I believe in your ivy settings you might be able to change where e the repository points to, the repo URL. I would try to find it and change it to the right value and bypass all of the redirect handling.
Cool, thank you David
Hi David,
Could you help to find the repo URL and change it? I really want to deploy my portlet but am unable to do it. Thanks in advance!