Eclipse can't connect to svn with ssh - eclipse

I try to connect Eclipse (with Subversion) to my svn repository with ssh for a first import of my project. I think my repository is correctly configured on OVH. So, I have created a directory "svn", and inside this folder, I created a folder "test_repository".
When I try to right clik on my project and Team/Share project, I choose "SVN", "Create a new repository location". After that, I specify the Url "svn+ssh://loginFTP#mySite.com/test_repository. Then, I choose a new folder name ("trunk"), and after I specify "Use privet key authentication" and I select my key file and my passphrase, with port number "22".
When I click on OK button, I guess eclipse trying to connect but it doesn't work. After 10 seconds, I have a message error :
Error while creating module: org.apache.subversion.javahl.ClientException: svn: E210002: The connect() operation on the socket timed out.
I tried some options in the "svn" configuration menu in "svn Interface/client" menu : SVNKit and JavaHL, but both doesn't work.
Last info: I don't use proxy.
Can someone help me please?

Related

How do I solve CVS error: cannot change permissions on temporary directory C:\CVS\cvstmp

Trying to "share project" in CVS from Eclipse, to upload a newly created Java project to the CVS repository it failed with the message:
«: cvs [server aborted]: cannot change permissions on temporary directory C:\CVS\cvstmp/cvs-serv:3072: Permission denied»
but no C:\CVS exists nor any CVS* environment variable or section of the PATH.
How do I solve the error and upload my new java project to the CVS repository?
Retry
There is not much about this in general. There are a lot of pages about the "permission denied", but as you add "CVS" and "C:\CVS" it grows thinner.
As a matter of fact, I only found this page that describes the problem, for a Red-Hat Linux installation, and goes on telling that it is a non-reproducible situation; and ends with the advice:
«If you experience this error while using CVS, retrying the operation which produced it should work fine.»
So I did: at the error message from Eclipse CVS plugin, I clicked OK, which returned me to the Share Project dialog and clicked "Next" again, and this time it succeeded.

SVN Switch with relocate in Eclipse

My question can be claimed to be an extension/similar to the question posted here.
basically, I need to do the same functionality using Eclipse plugin Subclipse. Subclipse has a functionality to "Switch branch/tag/revision", however, this is limited as it treats the new url as a repository and tries to compare them. I only wish to change the URL.
any ideas!
From SVN Repository Exploring perspective right click on your project repository and choose Relocate.. from contextual menu:
It will bring up a confirmation windows showing you active projects which will be affected by relocation.
In more recent versions of Eclipse/Subversive (which don't have the Relocate option) you can simply click Location Properties instead and change the URL. It will warn you that "The attached projects will be relocated because the repository root URL differs from the previously entered one." This is what you want!
I had the similar issue on Eclipse Luna 4.4.2 64 bit version. Initially I've relocated the project on the command line and Eclipse failed to recognize the relocation change. Alternatively I've tried to delete and re-import the projects, but sadly this approach failed to work out as well. Then sorted it out this way;
Closed all the projects,
Opened the SVN Repository Exploring perspective,
Right clicked on the repository >> Location properties,
In the properties pane, I've changed the url and in the below I choose "Use the repository URL as the label" clicked on finish,
Switched back to the Java perspective and reopened the projects.
After this alteration Eclipse stopped giving such errors and I was able to see the new root address of each project on the right side of the name
I found that if the projects that are related with the SVN you are trying to relocate are open in Eclipse, the operation fails with the following error in the 'SVN Console':
switch --relocate http://old.scm.com/svn/APP http://new.scm.com/svn/APP .../webapp
svn: E155019: Cannot relocate '...\webapp' as it is not the root of a working copy
svn: E155019: Cannot relocate '...\webapp' as it is not the root of a working copy
The solution was to close all the projects (Project Explorer -> right click on the project -> Close Project) and only after that, do the URL relocation in the SVN window (SVN Repositories window -> right click on the URL of the old SVN -> Relocate).
Notice that that the box 'Projects that will be relocated:' on the following screen is empty. Before it showed all the open projects in Eclipse IDE.
This was they only way I got it to succeed.
Using Eclipse Kepler Service Release 2, with Subclipse 1.10.10.

Eclipse CVS Project inside Remote SSH Project

I have Eclipse PHP Helios and I've setup successfully a new SSH connection to my remote server. One of the directories has Drupal installed and this directory is set up as Remote project. I have the right permissions and everything works perfectly. Now I am trying to import a new project from CVS and check it out into the existing remote project. Unfortunately I get the following error:
Errors saving CVS synchronization information to disk. Please fix the problems listed below and then update the affected resources from the CVS repository.
Missing element for : '': rse://192.168.1.253/srv/apachesolr2/CVS/Entries
Missing element for : '': rse://192.168.1.253/srv/apachesolr2/CVS/Entries
Missing element for : ''
What can I do to be able to import the cvs project into the remote location?
I don't think Eclipse CVS supports remote locations. You can try to work with a work copy on your local disk and then synchronize it with remote using RSE sync features.

How to use RSE plugin in Eclipse?

I installed the RSE plugin in Eclipse intending to either use SSH or FTP to work with files on a remote machine. I set up both an SSH and FTP connection, but neither works.
For example, here is what happens when I connect using FTP:
As you can see, the directories on the server show up, but I can't do anything with them. No sub-folders are showing up and none of the files can be opened.
I'm completely new to Eclipse, (though certainly not new to working with FTP) so I really don't know what to do to get this working.
Also, is there any way to use this with the PHP perspective at all?
First, make sure you are using the latest update site for RSE. In Eclipse, go to Preferences >> Install/Update >> Available Software Sites and check that the update site for RSE is listed correctly and it is enabled. You can learn the latest update site from the Target Management Home Page (look for an update site link next to the latest release announcement).
Once you do that, you must also have the RSE Core plugin enabled in addition to SSH or FTP services. In Eclipse, go to Help >> Install New Software. Expand the TM and RSE Uncategorized category and install the RSE Core plugin.
You should now see sub-folders, and have more options on the remote folder right-click menu. You can, for example create a remote project or import remote folders into your current project.
Your problem might be associated with the "Show files only" checkbox. In the Remote Systems perspective right-click on "Sftp Files" and try to create a new connection. In the "File Filter" dialog window make sure the "Show files only" checkbox is not checked.

Server configuration is missing in Eclipse

Im using Eclipse Galileo, and have configured it for Apache Tomcat . I have added Apache Tomcat 6.0 to Windows->Server->Runtime Environments, with the following settings:
Tomcat Installation Directory - C:\apache-tomcat-6.0.24\apache-tomcat-6.0.24
JRE - Workbench Default JRE (This points to C:\Program Files\Java\jre6)
Now, I create a Dynamic Web Project, and add a JSP file to it. But, when I run the project I get the following error:
The Tomcat server configuration at \Servers\Tomcat v6.0 Server at localhost-config is missing. Check the server for errors.
Any way to fix this?
Probably, you have some problems with your server's configuration.
Follow these steps to remove and create a new one, it might help you.
In Eclipse
1. Window -> Show view -> Servers (If you cannot see it, you might need to choose Others -> Server)
2. From Server view -> Delete the server which has problems.
3. Right click -> New -> Server : to create a new one
In my case, after new server was created, I get rid of this "localhost-config is missing"
I faced the same problem once. THe reason for this is that even though the server is available, the config files are missing. You can see the server at Windows -> Show view -> Servers. Their configuration files can be seen at Project Explorer -> Servers. For some reason this second mentioned config files were missing.
I simply deleted the existing server and created a new one with this the config files were also created and the problem was solved!
Similar solution is given at here by Emertana EM
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
In Eclipse Neo
1. Window -> Show view -> Servers
2. Right click on server -> choose Properties
3. From General Tab -> Switch Location
As Yoni already mentioned, you probably deleted the project named "Servers" from your Project Explorer. If config files for the server still present on a file system, the quickest way to restore it will be Right Click in Project Explorer->Import->General->Existing Projects into Workspace, then select the root dir where Servers dir located, set checkbox near "Servers" and finally click Finish. If everything works as expected, you should see the 'Servers' project added to the Project Explorer view and your old config files will be there. Finally, save the tomcat configuration which you had open. You can startup your Tomcat server without errors now.
From project explorer ,just make sure that Servers is not closed
You need to define the server instance in the Servers view.
In the box at the right bottom, press the Servers tab and add the server there. You by the way don't necessarily need to add it through global IDE preferences. It will be automagically added when you define it in Servers view. The preference you've modified just defines default locations, not the whole server instance itself. If you for instance upgrade/move the server, you can change the physical location there.
Once defining the server in the Servers view, you need to add the newly created server instance to the project through its Server and Targeted runtime preference.
If you're not too attached to your current workspace you can create a new workspace, follow BalusC's steps for server creation, and recreate your project in the new workspace.
I got the same error after installing Eclipse Java EE IDE for Web Developers(Juno) but using the workspace of a much older Eclipse installation. When I created a new workspace I was able to get my Tomcat server running without this error.
Did you, by any chance, deleted stuff from your workspace, or moved it around?
When you create a server for the first time, either globally or through the project's "run on server" settings, Eclipse creates a project in the Servers view, as BalusC pointed out. Eclipse stores this server inside your workspace, in a project called Servers. The project needs to be open for tomcat to run.
(If you want, you can store the server settings elsewher. You can right click and open the server instance from the Servers view and configure various parameters and locations)
This happens when Eclipse shuts down incorrectly - delete the server and then re-create it again.
Remove the server from IDE and install again to it.
In my case, the server list was empty for Apache in "Run Configurations" when I opened
Run > Run Configurations
I fixed this by creating a server in the Servers Panel as in other answers:
Window -> Show view -> Servers
Right click -> New -> Server : to create a new one
this worked for me
In the Server's tab in Eclipse, Stop the Tomcat server
Right-click the server and select "Clean..."
Right-click the server again and select "Clean Tomcat Work Directory..."
In the Eclipse, select the top-level menu option, Project > Clean ...
Be sure your project is selected and click Ok
Restart Eclipse
4th Step is most important.
Go to Servers remove the existing server by clicking delete.
Click the blue link to launch the server.
Set a new runtime environment.
Close the Eclipse and launch it again.
Boom it works!