Wednesday, September 9, 2015

tomcat install

install tomcat 32-bit/64-bit Windows Service Installer  exe.

use tomcat monitor to start server.

then http://localhost:8080/



To be able to use  Manager App and server status,
you have to add below user to
C:\tomcat8\conf\tomcat-users.xml file.





 
 http://stackoverflow.com/questions/3829513/what-is-the-default-username-and-password-in-tomcat

 In Tomcat 7 you have to add this to tomcat-users.xml (On windows 7 it is located by default installation here: c:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\ )
xml version="1.0" encoding="UTF-8"?>
<tomcat-users>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>
  <role rolename="admin-gui"/>
  <role rolename="admin-script"/>
  <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/>
</tomcat-users>
NOTE that there shouldn't be ANY spaces between roles for admin, as this list should be comma separated.
So, instead of this (as suggested in some answers:
<user username="admin" password="admin" roles="manager-gui, manager-script, manager-jmx, manager-status, admin-gui, admin-script"/>
it MUST be like this:
  <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,mana
 
 

No comments: