How to set username and password for tomcat 7?
Below are the steps to configure username and password for tomcat7
Step1 - Open <tomcat-installation-directory>/conf/tomcat-users.xml
Step2 - Add below lines in the xml file under tomcat-users element.
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin,manager-gui,manager-script,manager-jmx,manager-status"/>
Step3 - Open http://localhost:8080/ in browser and click on Manager App button. It will ask for username and password. Enter admin/admin.
You should be able to see the manager page.
Step1 - Open <tomcat-installation-directory>/conf/tomcat-users.xml
Step2 - Add below lines in the xml file under tomcat-users element.
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin,manager-gui,manager-script,manager-jmx,manager-status"/>
Step3 - Open http://localhost:8080/ in browser and click on Manager App button. It will ask for username and password. Enter admin/admin.
You should be able to see the manager page.
Comments
Post a Comment