How to Specify Eclipse Proxy Authentication Credentials? - eclipse

I'm using the latest version of Eclipse Galileo and I have to access the web from behind a proxy. I see where I can set the internet settings to manual and specify a proxy but there's no way to specify my authentication credentials that I can see and it doesn't prompt me for them either. So I'm not able to hit any plugin update sites etc... Does anyone else have this issue or know a good workaround? Or is there a better version of Eclipse to use?

In Eclipse, go to Window → Preferences → General → Network Connections. In the Active Provider combo box, choose "Manual". In the proxy entries table, for each entry click "Edit..." and supply your proxy host, port, username and password details.

If you have still problems, try deactivating ("Clear") SOCKS
see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=281384
"I believe the reason for this is because it uses the SOCKS proxy
instead of the HTTP proxy if SOCKS is configured."

Here is the workaround:
In eclipse.ini write the following:
-vmargs
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors= org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyHost=*myproxyhost*
-Dhttp.proxyPort=*myproxyport*
-Dhttp.proxyUser=*proxy username*
-Dhttp.proxyPassword=*proxy password*
-Dhttp.nonProxyHosts=localhost|127.0.0.1
After starting eclipse verify, that you use the Manual proxy method.
HTH

Window → Preferences → General → Network Connections
then under "Proxy ByPass" click "Add Host" and enter the link from which you will be getting your third-party plugin;
that's it bingo, now it should get the plugin no problem.

I struggle with this constantly, as it seems it is a different solution every time a new version of Eclipse is released. Here is a solution that doesn't involve displaying your password in the .ini file.
In Eclipse go to Window > Preferences > General > security Secure Storage
In the Password tab click on the "Change Password" button
Fill in the security questions. Don't make them to hard. Finish
Now go to Window > Preferences > General > Network connections. Choose "Manual" from drop down. Double click "HTTP" option and enter the Host, Port, Username and Password. Finish
Now go to Window > Preferences > General > security Secure Storage
In the Password tab click on the "Recover Password" button
Fill in the security questions. Finish
Eclipse now stores your username and password

This sometime works, sometime no.
I have installed 1 Eclipse - works.
Installed second - doesn't work.
And I cann't figure why!
After some time may be found a solution.
Need delete all setting for proxy (included credentials).
And re-insert for new.
After this for me getting work.

Try to fill only the HTTP schema

Add the following line at the end of your eclipse.ini file
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4

For eclipse Mar1 : -
Window > Preferences > General > Network connections. Choose "Manual" from drop down. Double click "HTTP" option and enter the Host, Port, Username and Password. Apply and Finish,,it will work as expected...

Related

Eclipse Subversive "Connection Failed By Server"

I am using Eclipse Indigo and Subversive SVN Team provider.
While i was generating projects using SVN repository i provided user name and password.
Now after a week i want to update some files,
right click on a file, Team->Update, getting below error:
Some resources were not updated.
svn: connection refused by the server
svn: PROPFIND request failed on 'bla bla'
I think i must log in but from where, can you provide a path? Or what may the problem be?
Thanks
Just open eclipse preferences.
click on General>Network Connections.
Then according to the environment, set active provider and other proxy settings.
Eclipse preferences. click on General>Network Connections -> change Active Provider value to Manual from the drop down. it worked for me.
The PROPFIND request failure probably means, Subversive cannot read contents from the server. A more detailed error message might be present in the Error log view (Window/Show view/Other..., and there it is in the General category, if I remember correctly).
Without a more detailed error message I would open the SVN Repository Exploring viewperspective, and try to update the Repository location settings (Right click, Properties), and there try to (1) validate the existing settings, and (2) update the username/password information.
The following steps allow me to work from my corporate network through proxy server to update Eclipse ide plugins, and connect to corporate svn server:
1. Open Window > Preferences > Network Connection Settings
2. Select Active Provider to "Manual"
3. Set proxy settings for HTTP/HTTPS (click Edit…)
4. Clear SOCKS proxy if it is set (select SOCKS row, click "Clear" button)
5. Add host svn.srv.com in Proxy bypass if svn.srv.com is within intranet
6. Apply and optionally restart Eclipse
Note: replace proxy.srv.com, and svn.srv.com with your actual urls
See answer also
Check your eclipse network setting ,
add SVN server to bypass proxy list
Eclipse preferences. click on General>Network Connections -> change Active Provider value to Manual from the drop down. it worked for me too.

Eclipse Indigo "unable to connect to repository"

I'm trying to add this repository to Eclipse (Indigo):-
http://download.eclipse.org/releases/indigo
Seems okay when checked in a browser, but I keep getting "unable to connect" in Eclipse, and when I check the URL Eclipse is apparently looking for:-
http://download.eclipse.org/releases/indigo/content.xml
in a browser, I get a "404 not found". The locations for previous releases (e.g. galileo) don't seem to be there either. Have they moved? Am I misunderstanding something?
I tried some of the suggestions in this previous thread:-
Eclipse updates not working
But they don't seem to work (and I'm not using a proxy anyway).
Hemdoar
This worked for me:
Open terminal. Navigate to Eclipse folder.
sudo nano eclipse.ini
at the bottom, add this line in:
-Djava.net.preferIPv4Stack = true
Then ctrl+O to save, ctrl+X to close (it says at bottom). IPv4/IPv6 problems? Solved.
Then delete the cache VonC said to:
<eclipse>/p2/org.eclipse.equinox.p2.repository/cache
(This can be done using "sudo rmdir /p2/org.eclipse.equinox.p2.repository/cache" or by typing "sudo nautilus" into terminal, to open a root-priveleged filesystem browser, than navigating to, selecting the folder, and pressing the delete key). Then restart eclipse, goto Help>install new software>available software sites
Make sure the repos you want (such as "http://download.eclipse.org/egit/updates/") has a "/" right at the end. If it doesn't, delete that entry, and create a new, identical one which does, because Eclipse won't just let you edit it and click ok. Then click ok, and from the combo box choose e.g. the egit link, and lo, it will find it.
Still not working? Window>show view>internal web browser; check it can access internet. Hope that helps!
Credit to:
http://drfits.com/2011/11/13/eclipse-contacting-software-sites-has-encountered-a-problem/
VonC Sep 14 '11 at 6:03
I used VonC's answer to good effect. I also uninstalled a program called webroot. I think this had something to do with it because other programs were also having network problems.
This is because windows IPV6 issue. Try adding the following VM option in the eclipse.ini
-Djava.net.preferIPv4Stack=true
Can you connect to internet at all through Eclipse?
Open the internal webbrowser. In Eclipse: Window -> show view -> Other -> General: Internal web browser.
Look up any normal adress, is it working?
Can you connect to another update site? Try for example Eclipse Emma: http://update.eclemma.org/ Do you see anything there?
What are your proxy preferences? Go to Window -> preferences -> General: Network connections.
The active provider:
Specifies the settings profile to be used when opening connections. Choosing the Direct provider causes all the connections to be opened without the use of a proxy server. Selecting Manual causes settings defined in Eclipse to be used. On some platforms there is also a Native provider available, selecting this one causes settings that were discovered in the OS to be used.
If internet is working fine outside of Eclipse, try changing to Native. After that, try Direct.
I have encountered problems where an update site would not load, then I had to remove it and add it again. This forces Eclipse to reread the contents of the site even if it has a cached copy. So, if you still get no connection to the indigo update site, but everything else is working, try that. Go to Window -> Preferences -> Install/update: Available Software sites. Then remove and add the indigo site. Just remember to copy the adress so you can add it again.
As suggested in a comment below by #lostiniceland, this is a simpler way to achieve the above:
Goto Preferences -> Install Update -> Available Software Sites => select the entry and click the "Reload" button to the right. This is sometimes also helpful when you have a local updatesite for testing custom plugins
first resolve proxy conflicts and if then too eclipse is not getting connected to internet *turnoff your firewall/antiviru*s and try again
To resolve proxy conflicts:Go to windows->prefernces-general tab->network settings
if you dont use proxy settings, cgange native to direct
if you use proxy, chenge native to manual and fill details of proxy for http and https by pressing 'edit' and clear SOCKS tab by pressing 'clear'
check if your SOCK is disabled on operating system too. or doing it open to 'Internet options' dailog box. Go to connections and press lan connection. press 'advanced' button ans clear the textboxes in front of 'socks' and uncheck the msg saying 'use same address for other network protocols'
I did this and worked for me
If you are using Fiddler2 (or any other web sniffer/debugger tool), it may be your problem, as it acts as a local proxy.
Sometimes, even if its not running, I find myself obligated to start it and disable traffic capture.
Hope that helps!

Eclipse updates not working

I have installed Eclipse 3,6 on 64 bit Windows platform.
When I try to connect to update sites by going to Help->install new software it gives following error:
Unable to connect to repository
http://download.eclipse.org/releases/galileo/content.xml
Connection refused: connect
I have tried all available sites - they all give me the same error.
Dialog box shows: Provision exception.
Any idea what's happening?
In Eclipse (go to Window > Preferences > General > Network connections).
Select "Active Provider" as "Manual".
Select HTTP and click edit.
Enter the host and port
Select "Requires Authentication" and enter the username and password.
Repeat Step 1 to 5 for Https.
In "proxy bypass" section click "Add host"
Enter http://download.eclipse.org/releases/galileo/content.xml and OK
After spending an entire week with the issue, this solution finally worked for me
Maybe you're behind a firewall, and need to access the web through a proxy. Have you set a proxy in your web browser? If so, you need to set the same proxy in Eclipse (go to Preferences > General > Network connections).
Well, try to enter this website: http://subclipse.tigris.org/update_1.6.x
If that link works, then it's not your fault. I've tried your link, and it doesn't work for me either.
If the link I gave you doesn't work either, then the problem is on your side and you need to check your network settings.
If you are behind a firewall, have set the proxy settings in the preferences correctly and it's still not working, Try setting -Dsun.net.client.defaultReadTimeout=<"amount in ms, e.g. 30000"> in the eclipse.ini worked well for me. It looks like Eclipse has a quick timeout on that updatesite search. Some proxys can slow the process down by a few seconds and you get a timeout before the updatesite is loaded completely

Eclipse secure storage

Is it possible to disable completely the secure storage password of Eclipse? I am running Eclipse Helios on Windows 7.
Windows->preferences->then type "secure storage"
In the Contents tab, select [Default Secure Storage].
Click Delete.
Let Eclipse restart.
To disable the master password prompt you have to specifiy a file containing the password with -eclipse.password, see Eclipse SDK Help and Bug 241223.
The complete procedure is as follows (this is on Linux, on Windows it should work as well if you change the paths):
Exit Eclipse
Delete the directory ~/.eclipse/org.eclipse.equinox.security
Create a text file containing your master password, e.g. echo "secret" > ~/.eclipse/master
Add to the very top of eclipse.ini, found in the Eclipse program directory (as two lines, don't combine into one)
-eclipse.password
/home/user/.eclipse/master
Start Eclipse again.
Here's my solution in Nano.2 on Windows, and it's nice and easy and seems to be working:
Window -> Preferences -> General -> Security -> Security Storage
Password tab: in the Master password providers section, uncheck Windows Integration and UI Prompt
I also tried deleting the [Default Secure Storage] in the Contents tab like some other answers suggested, but this is not needed and it gets recreated upon restart anyways.
You can now just delete it, assuming you don't need it for anything. Go to Window > Preferences > General > Security > Secure Storage and then click on the 'Contents' tab. If you click the Delete button and then restart Eclipse, you will no longer see the pop-up.
From what I understand, Secure Storage is mostly used with repositories like Git and SVN. In my case, I don't need it for my home computer. I use Git at work, but even so, I have never seen the Secure Storage pop up before.
While opening the Eclipse or importing the project, you might get sometimes error called Salt must be 8 bytes long. This is because of conflicts between Java and OS key store.
Either of following are the solutions of this problem.
► Solution 1: Remove file <USERHOME>.eclipse\org.eclipse.equinox.security\secure_
storage from your system. After that please restart machine and try to use Eclipse***.
► Solution 2: Uncheck the Windows Integration (64 bit) and UI Prompt from Password tab of Windows -> Preferences -> General -> Security -> Secure Storage. After that please restart machine and try to use Eclipse.
► Solution 3: Delete [Default Secure Storage] from Contents tab of Windows -> Preferences -> General -> Security -> Secure Storage. After that please restart machine and
try to use Eclipse.
On Ubuntu 11.10 with Eclipse Indigo installed the folder org.eclipse.equinox.security is hidden in the /root/.eclipse folder.
Do a
sudo su
cd /root/.eclipse
mv org.eclipse.equinox.security org.eclipse.equinox.security.backup
Then (re)start eclipse and the password will be gone.
In windows 7 enerprise 64 bits + java 8
In eclipse go to :
Preferences
--> General
-> security
-> secure Storage.
In master Password providers UNCKECK Windows integration (64 bits)
Then go to General -- network connections -- proxy
And edit your proxy settings.
A wizard appear to create Secure Storage

Is there any way of configuring Eclipse IDE proxy settings via an autoproxy configuration script?

I am behind a firewall which uses autoproxy configuration script. I am able to browse the internet when I enable the autoproxy url in most browsers I use (IE 7, IE 8, FF, Chrome). For your reference to enable autoproxy url on Windows goto: Settings -> Control Panel -> Internet Options -> Connections -> Lan Settings -> (Check) use automatic configuration scripts -> enter Address value as the autoproxy script url.
The issue I am facing is: I have Eclipse IDE and I want to configure the proxy settings in Eclipse similar to browser settings but I am unable to. I could not find a setting in Eclipse or NetBeans 6.9.1 or IntelliJ Idea to solve this issue.
I am using Maven2 integrated with these IDEs and no local repositories set up yet. Maven2 tries to install jars by downloading them from Internet but it cannot due to the proxy setting. I can manually download these libraries from Maven2 repositories and have an internal repository hosted using Artifactory or Nexus but I would like to know if there is any way I can do it from IDE itself...
Thanks for your feedback. Please let me know if you have any questions.
Here is what I do. All of these instructions are based on my minimal experiences with working PACs, so YMMV.
Download your pac file via your pac URL. It's plain text and should be easy to open in a text editor.
Near the bottom, there's probably a section that says something like:
return "PROXY w.x.y.z:a"
where "w.x.y.z" is an ip address or username and "a" is a port number.
Write these down.
In a recent version of eclipse :
Go to Window -> Preferences -> General -> Network Connections=
Change the provider to "Manual"
Select the "HTTP" line and click the edit button
Add the IP address and port number above to the http line
If you have to authenticate to use the proxy,
select "Requires Authentication"
type in your username. Note that if your authentication is on a Windows domain, you might have to prepend the domain name and a backslash (\) like: MYDOMAIN\MYUSERID
Type in your password
Click OK
Click Apply
Click OK
At this point, you should be able to browse using the internal web browser (at least on http URLs).
Good luck.
Edit:
Just so you know, it's WAY easier to use Nexus, one set of <mirror> tags and a single proxy setup (inside Nexus) to manage the proxy issues of Maven inside a firewall.
In the file:
$your_eclipse_installation\configuration.settings\org.eclipse.core.net.prefs
you need the option:
systemProxiesEnabled=true
You can set it also by the Eclipse GUI:
Go to Window -> Preferences -> General -> Network Connections
Change the provider to "Native"
The first way is working even if your Eclipse is broken due to wrong configuration attempts.
Download whatever configuration script that your browser is using.
the script would have various host:port configuration.
based on the domain you want to connect , one of the host:port is selected by the borwser.
in the eclipse network setting you can try to put on of the host ports and see if that works.
worked for me.
the config script looks like,
if (isPlainHostName(host))
return "DIRECT";
else if (dnsDomainIs(host, "<***sample host name *******>"))
return "PROXY ***some ip*****; DIRECT";
else if (dnsDomainIs(host, "address.com")
|| dnsDomainIs(host, "adress2..com")
|| dnsDomainIs(host, "address3.com")
|| dnsDomainIs(host, "address4.com")
return "PROXY <***some proxyhost****>:8080";
you would need to look for the host port in the return statement.
Download proxy script and check last line for return statement Proxy IP and Port.
Add this IP and Port using these step.
1. Windows -->Preferences-->General -->Network Connection
2. Select Active Provider : Manual
3. Proxy entries select HTTP--> Click on Edit button
4. Then add Host as a proxy IP and port left Required Authentication blank.
5. Restart eclipse
6. Now Eclipse Marketplace... working.
Well there's the Network Connections preference page; you can add proxies there. I don't know much about it; I don't know if the Maven integration plugins will use the proxies defined there.
You can find it at Window...Preferences, then General...Network Connections.
In Netbeans, we can use Tools->Options-> General Tab - > Under proxy settings, select Use system proxy settings.
This way, it uses the proxy settings provided in Settings -> Control Panel -> Internet Options -> Connections -> Lan Settings -> use automatic configuration scripts.
If you are using maven, make sure the proxy settings are not provided there, so that it uses Netbeans settings provided above for proxy.
Hope this helps.
Shreedevi