Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn ON automatic restart of Tomcat in Eclipse?

I want to setup Tomcat in Eclipse Luna to automatically restart, means opposite of this or this

When developing servlet, after changing my java code and then ran it Eclipse asked me to whether to restart the Tomcat or not. I clicked "no" and checked "remember my choice".

So every time, when I run servlet, the Tomcat will NOT automatically restart.

Where can I turn ON that feature (i.e., to clear "remember my choice" and set it opposite way).

I already tried opposite of what is advised in those two links but to no success. I tried both with "Modules auto reload by default" checked and unchecked.

UPDATE
I also tried to delete Tomcat several times and configure all over again, but it didn't help either. Here are available settings:

Tomcat settings in Eclipse Luna

like image 868
Nenad Bulatović Avatar asked Jan 09 '15 16:01

Nenad Bulatović


People also ask

How do I change Tomcat settings in Eclipse?

For configuring the tomcat server in eclipse IDE, click on servers tab at the bottom side of the IDE -> right click on blank area -> New -> Servers -> choose tomcat then its version -> next -> click on Browse button -> select the apache tomcat root folder previous to bin -> next -> addAll -> Finish.

How do I stop Tomcat from restarting?

Open the Services window (C:\Windows\system32\services. msc). Locate IDM Apps Tomcat Service. Select Start, Stop, or Restart.

How do you restart Tomcat?

To restart Apache Tomcat on Microsoft Windows On a command prompt, type services. msc . Right-click Apache Tomcat Tomcat6, and click Restart.


1 Answers

What you want to do is to update/modify launching preferences(how or when the server or runtime is launched).

To update launching preferences :

Go to Window->Preferences->Server->Launching

Make the highlighted option to Always.

Source: Defining the launching preferences

enter image description here

like image 81
Mukul Goel Avatar answered Sep 30 '22 03:09

Mukul Goel