Eclipse Tomcat default url - eclipse

I run my web application using eclipse with tomcat I receive this problem (in internal browser of eclipse - internet explorer):
http://localhost:8080/MyApp/
This program cannot display the webpage ....
Because I am after the proxy.
but when I manually put http://127.0.0.1:8080/MyApp/ - it works.
Is possible to adjust settings of Eclipse to launch url like: 127.0.0.1:8080 instead of localhost?
Thanks.

Open the "Servers View" , double click your tomcat server, the local configuration will appear.Change the hostname to "127.0.0.1" and then save.

There is another way to solve your problem. Eclipse built-in browser can use the native proxy settings. Add to the exception list the localhost string. Moreover maybe you should make changes in the network connections settings panel in Eclipse: from Direct to Native.

Related

How to prevent HTTP localhost preview problem?

I'm running a static web application in Eclipse + Tomcat and every time I run the application (Eclipse) and launched the project, I always encountered this problem 'Launching HTTP Preview at localhost' has encountered a problem:
I have changed the port number numerous time. I am afraid that this action might harm the server itself. Can anyone tell me what's going on and how do I prevent this from keep happening?
It looks like 8080 port is already being used by some other process/application
You can change the port using below steps (In Eclipse)
In Servers Tab, Double click the Tomcat server to open the
overview info
Under Ports section, HTTP/1.1 you can change the port you want and save it
Start the tomcat server, it should work
Thank you

Worklight application builder hang

I am using worklight 6.1.0.1 on Eclipse Kepler. As per the screen shot below, it hangs when I open the eclipse, with message saying "Worklight application builder". It takes forever to complete.
How do I resolve this issue ?
try to start eclipse with the -clean option on command line
The issue could be network related. If using a proxy server in eclipse make sure that is not enabled. This will try to route traffic through your proxy server. The other issue could be a firewall issue either locally or elsewhere. The application deployer routes out through the network to your workstation and does not use localhost. I have yet to find a way to change this setting.

Change port server in eclipse

I have done a restful web service in eclipse. I have configured a server inside eclipse to test it and it works fine but i want to know if its possible to change the default port . Change the 8080 port to another. is dat possible ?
Go to the server view, select the server and change the properties. You can right-click (windows) to get there.
Each server has its own settings plugin, so you may have to search a bit.
Just double click the server you have added in eclipse, and look for Ports will be available right in that view.

Debugging a GWT application in a remote environment

I have deployed my GWT application to its target environment (i.e. compiled and copied the war directory contents to the target device's /var/www) and some parts of it are not working. I understand that I can debug my local instance of the GWT app as if it were running in the target environment, by opening the deployed GWT App URL and adding gwt.codesvr URL parameter to it, like this:
http://deployment_host/gwtapp.html?gwt.codesvr=localhost:9997
I get
Plugin failed to connect to Development Mode server at localhost:9997
Follow the underlying troubleshooting instructions
My Chrome browser is running on the same machine as Eclipse, so localhost above should be ok. Just to make sure, I've added -bindAddress 0.0.0.0 in the Run/Debug configuration in Eclipse and tried with my external IP/hostname, with no change, except that the error message is updated accordingly. What am I doing wrong?
If I replace deployment_host with localhost above everything works fine, but it's of no use to me to debug locally. (There is some Proxy and ReverseProxy-ing going on in the local Apache, so I do not need the 8888 port when running locally, but this should be unrelated)
Questions Debugging GWT applications outside of dev mode? and Debug GWT application in a remote browser are related but do not help.
If you are using chrome, look in the address bar at the right for a grey GWT icon. In any other browser, you would see a popup message confirming that you want to debug, but in Chrome this apparently isn't possible.
Click the icon, and it will ask you to whitelist this site as allowed to run Java locally on your computer. After you whitelist it, it should run correctly.
Along the same lines as the answer above Ive just had some success restarting the extension helped (but restarting browser hadnt)
Just enable and disable it in :
chrome://chrome/extensions/
Good luck! It's the only thing wrong with GWT imho...

Problem on installing new software on Eclipse Galileo Platform

I want to install a subversion on my eclipse.
So I went to Help < Install New Software and when I pick the "Galileo - http://download.eclipse.org/releases/galileo" in the "Work with" dropdown, it tells me in the main box "No repository found at http://...".
It is appearing in my available software sites and when I test the connection it returns me an error saying Unknown host.
Can someone please help me, I really need to install that subversion :).
Anna
As mention in this thread, this could be a proxy issue:
I assume you mean you used a web browser to get that - if so, is it
configured to use a web proxy? If your browser is using a proxy then
you need to configure Eclipse to use one too (see the General/Network
Connections preference page).
Since 3.5 Galileo, The Network Connection page has been changed to better show the current proxy configuration.
Now if you go to Preferences > General > Network Connections, you are able to see and change Eclipse proxy settings as well as see settings provided by the operating system.
If you want to use your browser or Gnome settings, or you have your proxy configured using environmental variables on Linux, you can see them all in this new UI
So to set your proxy, you can follow this tutorial (How to configure Proxy Settings in Eclipse)
The severity of the bug is downgraded, since there is a workaround. Open the eclipse.ini file and add the following
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
In a few words the above command says that Eclipse can access the web via the *.pac files of the HTTP clients (eg Internet Explorer or Firefox).
To summarize:
Add the above line at the ini file
ensure that your default system http client (eg Internet Explorer) has proxy settings configured
Go to Eclipse Window->Preferences->Network Connection and enter the proxy setting here as well
It should work with this workaround
I'm not sure which Subversion client you use but neither of them can be installed from the main Galileo site. Follow the instructions on the web page of the Subversion plug-in how to install it.