Thursday, 13 August 2009
Eclipse Galileo and NTLMv2 Proxies
« Connecting JBoss instances through JNDI | Main | New Concurrency Classes in Java 7 »While configuring the newest installment of Eclipse, Eclipse 3.5 (Galileo), I ran into some proxy trouble. After setting the proxy-configuration, the 'Install New Software...' window would structurally say 'No repository found on <location>'.
After some Googling and researching, it appears to be a problem with Eclipse's underlying URL/Proxy handling library. This library is now Apache httpclient, which does not support NTLMv2 proxies. Luckily, there's a workaround.
If you are behind an NTLMv2 proxy, you can force Eclipse to revert its URL/Proxy handling library to the old JRE URLConnection by adding these lines to your eclipse.ini file:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient -Dhttp.proxyPort=8080 -Dhttp.proxyHost=myproxy -Dhttp.proxyUser=mydomain\myusername -Dhttp.proxyPassword=mypassword -Dhttp.nonProxyHosts=localhost|127.0.0.1
If your proxy does not require authentication, you can leave out the proxyUser and proxyPassword settings.
For more information, see http://wiki.eclipse.org/ECF_Filetransfer_Support_for_NTLMv2_Proxies.
--JH
[Trackback URL for this entry]
