Cannot add P2 artifact repository

f....a....l....k....e...n....h....a....g...e...n......gmail.'s picture
Hello, I would like to try out the Cloud Services Gateway and am following these instructions: http://wso2.org/library/tutorials/introducing-wso2-cloud-services-gateway But in the OSGi console, when I attempt to add the P2 artifact repository, I get the following error:
osgi> provaddrepo http://dist.wso2.org/p2/carbon/releases/2.0.2/

osgi> provaddartifactrepo http://dist.wso2.org/p2/carbon/releases/2.0.2/
java.lang.UnsupportedOperationException: Repository not modifiable: http://dist.wso2.org/p2/carbon/releases/2.0.2/
        at org.eclipse.equinox.internal.provisional.spi.p2.repository.AbstractRepository.assertModifiable(AbstractRepository.java:54)
...
An earlier forum post (https://www.wso2.org/forum/thread/5654) suggests that the issue is likely proxy settings (I am behind a corporate proxy). As suggested, I specified the proxy in the startup script but still have no luck.
...
-Dhttp.proxyHost=10.25.10.25 \
-Dhttp.proxyPort=8080 \
-Dhttp.nonProxyHosts='localhost|127.0.0.1' \
-Dhttp.proxySet=true \
org.wso2.carbon.server.Main $*
It looks like the provaddartifactrepo command uses the Eclipse Equinox p2 library to fetch the repository. Is it possible the proxy setting is not getting passed to the p2 library? I am using WSO2 WSAS 3.1.2 (binary download) and Java 1.6 on Linux. Is the command expected to work behind a proxy, or is there any known workaround for this? Thanks, Matt
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)