11.10. Using a Tomcat Plug-in
Problem
You want to automate some of the Tomcat processes, such as starting and stopping Tomcat, as well as debugging Tomcat projects.
Solution
Use a Tomcat plug-in such as the Sysdeo plug-in. Download the plug-in
from http://www.sysdeo.com/eclipse/tomcatPlugin.html,
and expand it in the Tomcat plugins
directory. It’ll add buttons to the
Eclipse toolbar for starting and stopping Tomcat.
Discussion
The Sysdeo plug-in enables you to start and stop Tomcat from inside
Eclipse, and you can download it for free from http://www.sysdeo.com/eclipse/tomcatPlugin.html.
You install this plug-in by expanding it in the Tomcat
plugins directory, then
activate it by selecting Window→ Customize Perspective,
expanding the Other node, and clicking Tomcat, as shown in Figure 11-10.

Figure 11-10. Configuring the Tomcat plug-in
Tip
For more on installing, using, and creating plug-ins, see the next two chapters.
As shown in Figure 11-11, this adds a new Tomcat menu to Eclipse and adds three Tomcat buttons to the Eclipse toolbar you can see under the Navigate menu; these buttons start, stop, and restart Tomcat.

Figure 11-11. Tomcat menu and buttons in the toolbar
You also need to connect the plug-in to your installation of Tomcat. Do that by selecting Window→ Preferences, which opens the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access