Tomcat - Tomcat Manager confi gurationThe Tomcat Manager is a very powerful tool for Tomcat administration. In production server issues, it's not possible to be in the data center at all times. Sometimes, we have to connect to Tomcat remotely to resolve the issues and that is when the Tomcat Manager is very useful for handing a critical issue. It comes with the following features :
By default, the Tomcat Manager is disabled in Tomcat 7. To enable the Tomcat Manager, you have to do the confi guration in the default fi le, that is, tomcat-users. xml in the conf folder of Tomcat 7. In this fi le, user roles and their authentication are confi gured. Let's quickly discuss the confi guration parameters for enabling the Tomcat Manager. Before enabling the Tomcat Manager, an authentication window will pop-up while browsing the Tomcat page. By default, Tomcat 7 comes with two users, tomcat and role1. If you want to add more users based on your system requirement, you can add here and defi ne the role. Once you enable the Tomcat user confi gurations, this confi guration will be in effect after the Tomcat recycle. You can browse the Tomcat Manager using the URL http://localhost:8080/ and click on Manager App. Once the authentication page is displayed, provide the user ID/password (user = admin, password = admin) as it's already defi ned in tomcat-users.xml. Click on OK. The pop-up will redirect it to the Tomcat Manager console. Through this console, we can deploy the new application or modify the current application's state to stop, undeploy, start, reload, clear sessions, and so on. Also, we can check the current status of the server by clicking on the Server Status. The server status will defi ne the following details:
|