I am getting "Server is started at 5500 but failed to open browser. Try to change the CustomBrowser settings." in VScode while using line server. I have tried to change default settings but i still can't solve it.
In VScode go to extension (ctrl+shift+x) and search for live server, on live server go to manage > extension setting, then look for Live Server > Settings:Use Browser Preview section in the settings.
If the checkbox is checked, uncheck it.
I'm running Eclipse 4.6.1 with in-IDE Tomcat 8.5.6 on Windows 10 Professional 64-bit Anniversary Edition.
After Tomcat is left running in Eclipse after some time, the Tomcat embedded in Eclipse can no longer be stopped. I press the red "Stop" button in the "Servers" tab, but nothing happens. Eventually Eclipse will ask me if I want to terminate Tomcat:
Server Tomcat v8.5 Server at localhost is not responding. Do you want to terminate this server? Click OK to terminate the server or click Cancel to continue waiting.
I click "OK to terminate the server... but Tomcat keeps running.
Unfortunately when I then try to close Eclipse, it hangs on "Saving workbench state." Finally I have to kill Eclipse, thereby losing my workbench state. Even worse, if I then start Eclipse back up and try to restart the embedded Tomcat, I get the following error:
'Starting Tomcat v8.5 Server at localhost' has encountered a problem.
Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
How can I surgically go in and really kill Tomcat so that it doesn't hang Eclipse and keep ports open? (Unfortunately the only thing that shows up in the task manager is Eclipse.exe. There is no Tomcat to be seen. I've tried killing the javaw.exe subprocess, but that doesn't help.)
(At one point I thought this was related to a VPN connection going down, but today this happened with no VPN connection at all.)
I've filed Eclipse Bug 511342. We'll see if anything comes of it.
i've tried locally but i couldn't recreate the bug .
im not sure that this answers your question but it is for sure something worth trying , in any case this might show some features to other users....
in the window menu you have the SHOW VIEW , there you can choose other
this open the future window with search bar and all the available views for the ide .
in the debug view , you can do actions not only on applications , but on servers also . the menu here is different from the view you see in the server, and you can do advanced termination other things.
welp , hope that helps .
*note , you don't need the server to run in debug mode .
Find your Tomcat installation directory, navigate to bin folder, open a command window there and execute an .bat file named shutdown.bat, this way you can kill tomcat directly, make sure to locate the appropiate Tomcat installation directory which Eclipse is using.
UPDATE - Expected output:
I have not used it in the same way you have, but this may help.
On a command prompt (Cmd.exe) execute:
netstat -a -o | find "8080"
That will list all IP/PORT in use alongside the PID (process id) filtering by port # 8080 (change it to meet your needs or remove the find if you want to list all)
Open Task Manager, and using the PID you should be able to find the particular
process that is using the ports you need to release.
updated:
Once you find the port (8080) you can try using the command
taskkill /f /pid [port number]
Found a related issue with this command: Stack overflow - Tomcat not shutting down eclipse
Again, I use this when I need to find a rogue thing that I need to kill, and I don't know if the embedded environment will show it separate but its worth a try.
In tomcat's console inside Eclipse, there's a red button that can stop it. Albert also stated that in task manager it appears as javaw.exe, however Eclipse itself also appears as javaw.exe, so be careful when killing each one. Eclipse should be the one that takes more memory.
I can't get my Eclipse 3.8 (Ubuntu installation), RSE/TM plugin 3.4 or 3.5 connect with google-compute-engine/debian-7-wheezy-v20140606. I have tried to use vm IP directly and also alias method that gcloud compute command line utility provides. Both work from command line but RSE ends up authentication error. It seems that RSE ignores ~/.ssh/config that alias method uses.
Do anyone know what settings/procedure should I use for this connection?
I found how to make settings.
Supposing that your connection name is GCE-1:
Open Remote System Explorer perspective.
Select GCE-1 from Remote System Explorer window.
Right click -> Properties.
Select Host at the left panel of "Properties for GCE-1" window.
Click Configure proxy settings at the Host panel of "Properties for GCE-1" window.
Navigate General -> Network Connection -> SSH2.
Select General tab.
Click Add Private Key button.
Navigate to ~/.ssh.
Select google_compute_engine and click OK and OK.
Note that GCE command line tools create this file by default.
Done! Now you can navigate e.g. your Sftp Files below GCE-1 Within Remote Systems window.
Every time I want to run my project on the remote server, I need to export it from Eclipse as a jar file, to transfer the file from my local machine to the remote server using WinSCP and then to use Putty to run it on the remote server. I am wondering is there a more suitable way of handling this, e.g. an Eclipse plugin that allows me to perform this straight from Eclipse.
This functionality is present in Eclipse, called Remote Systems Explorer.
Open the Remote Systems view by going to Window -> Show View -> Other....
Then right click in this view and select on New connection....
Select SSH Only as remote system type and click Next.
Fill in the necessary information such as hostname and connection name and click Finish.
Select the Connector node you just created from the Remote Systems view and choose Connect.... Enter your credentials and press Ok.
If you managed to log in, you will see a green arrow on the node indicating you are connected.
You can right click either Shells or Terminals and choose Launch Shell/Terminal. A new Remote Shell or Terminal should appear where you can type in commands.
It is also possible to remotely create files, open/edit and save them from within Eclipse.
More documentation can be found in the Eclipse RSE manual.
Additional Information:
Plarform: Windows 7 Latest Updates, Windows XP Comp View Virtual Machine
Version: Internet Explorer 8.0.7601.17514
I am developing a gwt application and recently get this problem:
With fresh installation of Windows 7 and ie8 everything works fine, but after resetting all the configuration data, ie8 starts to prompt dialog for downloading javascript files instead rendering them in page. It is more interesting that this does not occurs every time, but on some machines looks fine after resetting, on others is disaster. Looks like some kind of specific Windows configuration, because if it happens with Windows 7, it happens too with the compatibility mode for Windows XP.
Steps to reproduce:
Go to Internet Options
Go to General Tab -> Click on Delete browsing history on exit -> Click on Delete button
Go to Security Tab -> Click on Reset all zones to default level
Go to Advanced Tab -> Restore advanced settings
Go to Advanced Tab -> Click on Reset Button -> Click on Delete Personal Settings Checkbox -> Click on Reset Button
Restart Internet Explorer 8 and try to start gwt application
Thank you for the answers in advance.
P.S. Can try to reproduce the problem with: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCheckBox
It's probably because of the unknown content type of the files.
Try to add:
<mime-mapping>
<extension>js</extension>
<mime-type>application/x-javascript</mime-type>
</mime-mapping>
to you web.xml