While developing an application using gwt in ecliplse crashed.
Now the server is running on the port 8888 I'm unable to stop it.
Nothing is showing in the console but I can access the application from the browser. How can I kill the instance of this embedded server?
as #jesse said in the comments 'jps -l' is the solution.
In eclipse you can do this from the "Development mode" view.
Click here to see the image
Related
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
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.
i am only start learning GWT by following their tutorial on https://developers.google.com/web-toolkit/doc/2.1/tutorial/create
On that page, when i reach the heading Running the development mode code server (from Eclipse), i copied the generated url http://127.0.0.1:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997 to my browser.
It eventually times out, says page not loading...the plugin page did not show up initially, so i manually installed the plugin...but it still times out...
On the screen, it says...
===============================================================================
The connection was reset
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web
==============================================================================
Am i missing any configurations etc?
Thanks very much in advance
It still looks like your browser is missing the GWT developer plugin. Try a different browser (preferably Chrome). You can also check the instalation of GWT in Eclipse. Look into Windows/Preferences and under Google/WebToolkit you should see checked GWT SDK. Also you can check if a jetty server runs on port 8888, when you type "netstat -na" on the command line.
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...
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.