views:

8788

answers:

7

I'm trying to add an svn repository to eclipse.

I've installed subclipse, and it seems to be working fine. But, when I try to "add a new SVN repository", I input this, for example:

http://svn.python.org/projects/peps/trunk

I get this:

Error validating location: "org.tigris.subversion.javahl.ClientException: RA layer request failed svn: OPTIONS of 'http://svn.python.org/projects/peps/trunk': could not connect to server (http://svn.python.org) " Keep location anyway?

I know that my eclipse can connect to the 'net because I downloaded subclipse earlier (I had to change my proxy settings).

I get a similar message for other SVN locations I've tried to add.

Anyone have any solutions?

+1  A: 

Try to connect to the repository using command line SVN to see if you get a similar error.

$ svn checkout http://svn.python.org/projects/peps/trunk

If you keep getting the error, it is probably an issue with your proxy server. I have found that I can't check out internet based SVN projects at work because the firewall blocks most HTTP commands. It only allows GET, POST and others necessary for browsing.

bengineerd
+1  A: 

Do you have any working repositories in this instance of eclipse?

I've had problems in the past with the default Subclipse subversion client on Windows, you need to make sure the native subversion client is installed and correctly configured (I've got TortoiseSVN to work in the past) if you want to use the default client adapter.

On a recent install I tried the "beta" drivers (I have Eclipse Ganymede and "SVNKit (Pure Java) SVNKit v1.2.0.4502") that you can optionally install with Subclipse and they worked pretty much straight out of the box, although a colleague found he had to go through a few hoops to make sure Eclipse installed them (and their dependancies) correctly.

Here are the packages that appear in "Help" -> "Software Updates" -> "Installed Software":

Subclipse                  1.4.0
Subversion Client Adapter  1.5.0.1
SVNKit Client Adapter      1.5.0.1
SVNKit Library             1.2.0.4502

These are probably a little out of date now, and the latest version will probably work better, but this is what I can see working right now.

fd
+1  A: 

It is probably of little help to you, but I enter that URL into Subclipse and the repository adds fine and I can browse and Show History on it.

Do you perhaps need to configure a proxy? You have to configure that in the Subversion runtime configuration area as Subclipse uses the Subversion libraries to connect to the server.

Mark Phippard
A: 

I had to configure a proxy to download subclipse through the Eclipse installer originally, so that seems to be working.

I can run that svn command directly from our unix system, but not from a windows command line. I'll try installing TortiseSVN or something and try it. I'd think it should work through eclipse, though.

THanks.

It is probably of little help to you, but I enter that URL into Subclipse and the repository adds fine and I can browse and Show History on it.

No, that helps. It at least lets me know that directory is valid.

Baltimark
+1  A: 

I doubt that subclipse and then svn can use your eclipse proxy settings. You'll probably need to set the proxy for your svn program itself. Trying to check out the files using svn from the command line should tell you if that works.

If svn can't connect either then put the proxy settings in your servers file in your subversion settings folder (in your home folder).

If it can't do it even with the proxy settings set, then your firewall is probably blocking the methods and protocols that subversion needs to use to download the files.

danivovich
A: 

I have an svn repository. When i try accessing the repository through my browser, i get a pop-up to enter userid and password. on successful login, i'm shown the directory tree.

I now want to connect to this secured svn repository through myeclipse ide. I'm trying to do it in the normal way but it doesn't seem to work. Any help in this regard will be highly appreciated.

Thanks Abdul

Abdul
+1  A: 

This is a dead topic, but the solution is you have to install a client adapter along with subclipse.

Take a look at: http://subclipse.tigris.org/wiki/PluginFAQ#head-da671f9d3dd97d874248445af428545727a8271a

and install SVN Client Adapter, SVNKit Adapter, and SVNKit Library.

Then check under Window -> Preference -> Team -> SVN and make sure there is an entry for SVN Interface.

And for future reference, if you can connect to the depository through the command line then it must be a problem with the IDE.