Foros de discusión
Build Failed: HTTP Authorization failure
Edwin Lobo, modificado hace 7 años.
Build Failed: HTTP Authorization failure
New Member Mensajes: 10 Fecha de incorporación: 5/05/16 Mensajes recientes
Hi!
I have tried to build services but I got the following error in the console:
_____________________________________________________
BUILD FAILED
/home/comba/liferay-plugins-sdk-6.2/portlets/visualizer-portlet/build.xml:5: The following error occurred while executing this line:
/home/comba/liferay-plugins-sdk-6.2/portlets/build-common-portlet.xml:5: The following error occurred while executing this line:
/home/comba/liferay-plugins-sdk-6.2/build-common-plugin.xml:5: The following error occurred while executing this line:
/home/comba/liferay-plugins-sdk-6.2/build-common.xml:60: The following error occurred while executing this line:
/home/comba/liferay-plugins-sdk-6.2/build-common-ivy.xml:71: The following error occurred while executing this line:
/home/comba/liferay-plugins-sdk-6.2/build-common-ivy.xml:55: HTTP Authorization failure
Total time: 1 second
____________________________________________________
I am using PostgreSQL 9.5 as default database
Somebody can help me with this issue, please?
Thanks in advance!
My service.xml is:
I have tried to build services but I got the following error in the console:
_____________________________________________________
BUILD FAILED
/home/comba/liferay-plugins-sdk-6.2/portlets/visualizer-portlet/build.xml:5: The following error occurred while executing this line:
/home/comba/liferay-plugins-sdk-6.2/portlets/build-common-portlet.xml:5: The following error occurred while executing this line:
/home/comba/liferay-plugins-sdk-6.2/build-common-plugin.xml:5: The following error occurred while executing this line:
/home/comba/liferay-plugins-sdk-6.2/build-common.xml:60: The following error occurred while executing this line:
/home/comba/liferay-plugins-sdk-6.2/build-common-ivy.xml:71: The following error occurred while executing this line:
/home/comba/liferay-plugins-sdk-6.2/build-common-ivy.xml:55: HTTP Authorization failure
Total time: 1 second
____________________________________________________
I am using PostgreSQL 9.5 as default database
Somebody can help me with this issue, please?
Thanks in advance!
My service.xml is:
<!--?xml version="1.0" encoding="UTF-8"?-->
<service-builder package-path="com.urbanasensor.visualizer">
<author>comba</author>
<namespace>VZ</namespace>
<entity name="Urbanatweet" remote-service="false" local-service="true" uuid="false">
<!-- PK fields -->
<column name="urbanatweetId" type="long" primary="true"></column>
<!-- Group instance -->
<column name="groupId" type="long"></column>
<!-- Audit fields -->
<column name="companyId" type="long"></column>
<column name="userId" type="long"></column>
<column name="userName" type="String"></column>
<column name="createDate" type="Date"></column>
<column name="modifiedDate" type="Date"></column>
<column name="text" type="String"></column>
<column name="mentions" type="String"></column>
<column name="hashtag" type="String"></column>
<column name="retweets" type="int"></column>
<column name="followers" type="int"></column>
<finder name="GroupId" return-type="Collection">
<finder-column name="groupId"></finder-column>
</finder>
</entity>
</service-builder>
David H Nebinger, modificado hace 7 años.
RE: Build Failed: HTTP Authorization failure
Liferay Legend Mensajes: 14914 Fecha de incorporación: 2/09/06 Mensajes recientes
I'm guessing you set up the http.proxy to download artifacts from the net, but I'm also guessing it's an authenticated proxy and you didn't provide credentials.
Edwin Lobo, modificado hace 7 años.
RE: Build Failed: HTTP Authorization failure
New Member Mensajes: 10 Fecha de incorporación: 5/05/16 Mensajes recientes
Thanks David!
No, I did not set up the http.proxy, at least not manually and consciensiously, I am just following the learning path to build services.
I haven't found the cause of this error.
I got this too:
Please, any help?
Thanks in advance!
No, I did not set up the http.proxy, at least not manually and consciensiously, I am just following the learning path to build services.
I haven't found the cause of this error.
I got this too:
[Console output redirected to file:/home/comba/workspace/.metadata/.plugins/com.liferay.ide.sdk.core/sdk.log]
Buildfile: /home/comba/liferay-plugins-sdk-6.2/portlets/guestbook-portlet/build.xml
[get] Getting: http://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] To: /home/comba/liferay-plugins-sdk-6.2/.ivy/ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Error getting http://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 to /home/comba/liferay-plugins-sdk-6.2/.ivy/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: /home/comba/liferay-plugins-sdk-6.2/.ivy/ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
Please, any help?
Thanks in advance!
Edwin Lobo, modificado hace 7 años.
RE: Build Failed: HTTP Authorization failure (Respuesta)
New Member Mensajes: 10 Fecha de incorporación: 5/05/16 Mensajes recientes
Solved!
It seems the ivy.jar.url in build.properties was pointed to a broken url.
It was ponting to:
ivy.jar.url=http://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/${ivy.version}/org.apache.ivy-${ivy.version}.jar
It was changed to:
ivy.jar.url=https://repository.liferay.com/nexus/content/repositories/liferay-public-snapshots/com/liferay/org.apache.ivy/${ivy.version}/org.apache.ivy-${ivy.version}.jar
Thanks anyway!
It seems the ivy.jar.url in build.properties was pointed to a broken url.
It was ponting to:
ivy.jar.url=http://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/${ivy.version}/org.apache.ivy-${ivy.version}.jar
It was changed to:
ivy.jar.url=https://repository.liferay.com/nexus/content/repositories/liferay-public-snapshots/com/liferay/org.apache.ivy/${ivy.version}/org.apache.ivy-${ivy.version}.jar
Thanks anyway!