Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Configure tomcat6  RSS feed

Joy Vergis
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have downloaded on my local machine. I unpack the same in "C:\tomcat6\" location. ALso I set the catalina_home in environmental variables. I get teh index page when i type in http://localhost:8080.

But the problem is when I click on Tomcat Manager I get a pop up asking me to input the username and password for Tomcat Manager Application. I tried with all the user ids and passwords mentioned in tomcat-users.xml but not able to login .

Also below mentioned files are present in lib directory.
annotations-api.jar, catalina.jar, catalina-ha.jar, catalina-tribes.jar, ecj-3.3.1.jar, tomcat-coyote.jar, tomcat-dbcp.jar, tomcat-i18n-es.jar, tomcat-i18n-fr.jar
tomcat-i18n-ja.jar, catalina-ant.jar, el-api.jar, jasper.jar, jasper-el.jar, jsp-api.jar, servlet-api.jar, catalina-deployer.jar, tomcat-juli.jar

But I get the below error.

  • You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp.

    For example, to add the manager-gui role to a user named tomcat with a password of s3cret, add the following to the config file listed above.

    <role rolename="manager-gui"/>
    <user username="tomcat" password="s3cret" roles="manager-gui"/>
    Note that for Tomcat 6.0.30 onwards, the roles required to use the manager application were changed from the single manager role to the following four roles. You will need to assign the role(s) required for the functionality you wish to access.

    manager-gui - allows access to the HTML GUI and the status pages
    manager-script - allows access to the text interface and the status pages
    manager-jmx - allows access to the JMX proxy and the status pages
    manager-status - allows access to the status pages only

  • I also added the below in tomcat-users.xml. but still getting the error.

    I donot have administrator rights. Please let me know if any changes needs to done in any files(catalina.policy) for the same.

    Request your help on this
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!