2012-01-24 42 views
6

我使用Subclipse 1.6.18 STS 2.8.1(我认为它基于Eclipse Indigo)。“RA层请求失败”与Subclipse错误,与网络浏览器没有错误

我试图从仓库出来查了一些代码,但是当我添加该存储库位置,我得到以下错误:

RA layer request failed
svn: Server sent unexpected return value (503 Service Unavailable) in response to OPTIONS request for 'http://a.b.com:18080/svn/myproject'

的事情是,如果我尝试访问从仓库一个网页浏览器(例如Chrome或IE),我可以访问它。它要求输入我的用户名和密码,输入后我可以看到项目树。

有谁知道我为什么可以从网络浏览器访问,但不能从STS访问?

Subclipse的代理设置配置正确(我可以从STS访问其他存储库,但不是那个)。

+2

双重检查代理密码:密码可能是一个情况svn设置('c:\ Documents and Settings \ _username_ \ Application Data \ Subversion \ servers'或'〜/ .subversion/servers')可能会覆盖我已经完成的Eclipse设置 – VonC

+0

,并且它们是正确的。正如我所说,我能够连接到其他存储库位置,所以这似乎不是问题。任何其他想法?谢谢你的帮助! – Neets

+0

对于Eclipse和svn都正确吗?另外尝试新的Eclipse安装(在当前Eclipse的另一个目录中),并查看问题是否仍然存在。 – VonC

回答

7

这通常是由于SVN设置(c:\Documents and Settings\_username_\Application Data\Subversion\servers~/.subversion/servers)覆盖Eclipse设置。

或者其中一个设置的代理密码可能不正确。

然而,OP Neets报道:

  • I'm able to connect to other repository locations (so the proxy password is correct)
  • I solved it, adding the corresponding exception in the servers file, like this:
http-proxy-exceptions = exception.com 

,符合什么介绍了OpenDNS的文章Configuring Subversion to Use a Proxy Server

http-proxy-exceptions 

This specifies a set of repository addresses for which you don't need to access a proxy server. For example, if you have a repository on your local LAN, then you probably won't need a proxy to access it.
This should be a comma-delimited list of servers, and you can use an asterisk as a wildcard.
If all of the repositories that you will access require you to use a proxy server, then you can leave this out.

The following shows a sample configuration that will use a proxy server to access all servers outside of the example.com domain:

[global] 
http-proxy-exceptions = *.example.com 
http-proxy-host = proxy.example.com 
http-proxy-port = 8080 
http-proxy-username = myuserid 
http-proxy-password = mypassword 
+1

注意:[Jabda](http://stackoverflow.com/users/1260393/jabda)在[已删除的答案](http://stackoverflow.com/a/20527431/6309)中提到,因为在Eclipse中,存储库的用户名区分大小写,因此输入正确的用户名可以解决问题。 – VonC

相关问题