Using Subclipse Behind a Proxy Server

At my day job I sit behind a corporate firewall protecting and caching web traffic (among other things). For the most part it stays out of the way. But sometimes it rears its ugly head and stands firmly in the path of what I am trying to do.

Earlier this week I was trying to look at a cool new general validation system for ColdFusion called Validat, put out by the great guys at Alagad. They don't have a download on the RIAForge site yet, but the files are available via SVN. I loaded up the subclipse plugin into my Eclipse, restarted and began adding the Validat SVN repository. I started getting errors abou the "RA layer request failed" and "svn: PROPFIND request failed on /Validat/trunk", followed by an error about not being able to connect to the SVN server.

I already had Eclipse setup with my proxy settings, so I thought I was doing something wrong or Alagad didn't actually have the subversion repository up-and-available. After going home that night, I tried it from home and wa-la it worked. Stupid proxy server! So the subclipse plugin won't use the Eclipse proxy settings. (Can that be fixed please!). After digging around the subclipse help site and being redirected to the collab.net help, then unproductively searching through the eclipse workspace, plugins, and configuration folders for the settings file, I was finally able to figure out how to set up subclipse to use the proxy server.

In my Windows development environment, I opened the following file: C:\Documents and Settings\MyUserId\Application Data\Subversion\servers in my favorite text editor. Near the bottom of that file is a [global] section with http-proxy-host and http-proxy-port settings. I uncommented those two lines, modified them for my corporate proxy server, went back to the SVN Repository view in Eclipse, refreshed the Validat repository and Boom! it worked!

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
You`re my hero, i really was going to be mad.

Thanks a lot ;)

Regards Oliver
# Posted By Oliver | 11/19/07 10:08 AM
This is really helpful. It worked for me.

Thanks
George
# Posted By George G. | 11/26/07 1:43 PM
Thanks! This answer was exactly what I was looking for.
# Posted By Laurynas | 12/13/07 5:27 PM
Thank you Mark,

this is exactly what I was looking for. I wonder why they do not make use of the Eclipse HTTP proxy settings.

Greetings
# Posted By Friedrich-Daniel Möller | 4/10/08 3:13 AM
I tried to make the settings in the servers file, but I receive this error message when I try to commit:

SVN Commit (Time of error...)
Reason:
org.tigris.subversion.javahl.ClientException: RA layer request failed
svn: Commit failed (details follow):
svn: OPTIONS request failed on '/svn/repos/blah/Configurations'
svn: OPTIONS of '/svn/repos/blah/Configurations': Could not resolve hostname `http://blah.dyndns.org': The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. (http://svn.blah.net)

It seems like Subclipse wants to use the proxy information, but isn't succeeding.
# Posted By Wesley | 6/6/08 3:57 PM
Thanks buddy you saved me a lot of time :)
# Posted By Carl | 7/21/08 8:39 AM
Yeah that worked for me also! But after setting the proxies was not enough: our proxy does not support webDAV commands and so it was failing with
RA layer request failed svn: Server sent unexpected return value (500 Server Error) in response to OPTIONS request for 'http://svn.theserver.com'
turned, putting it into https mode (ie https://svn.theserver.com) made it work.
My inspiration came from: http://coding.derkeiler.com/Archive/Java/comp.lang...
# Posted By dr jerry | 9/4/08 8:55 AM
Thanks a lot for this info!!!
I had been wacking my head against the walls for weeks to get this thing working...It is really weird for the fact that working under linux (ubuntu) there is no such problem but while working under windows there is!!!
That was more or less the real reason why I thought that its perhaps a bug with subclipse and didn't bother searching much, but now I did and I am glad I found your article.

Thanks.
# Posted By Dhruva Sagar | 10/7/08 1:35 AM
Its great. I also wasted a lot of time for this. Thank god, I came across this post.
Thanks a lot :-)
Regards,
Anil
# Posted By Anil | 11/26/08 1:33 AM
Thanks man that did the trick for me too!
# Posted By Steve | 12/9/08 1:41 PM
thanks man, that saved me a lot of time trying to figure it out on my own
# Posted By Daniel | 1/20/09 1:55 AM
works like a charm!

Thanks man!
# Posted By larry | 2/8/09 7:37 PM
This information was very helpful!
Thanks a lot.
# Posted By magix | 3/20/09 4:40 AM
you showed the light! thanks a million dude!
# Posted By rb | 4/8/09 11:31 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.