File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Configure tomcat6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configure tomcat6 " Watch "Configure tomcat6 " New topic
Author

Configure tomcat6

Joy Vergis
Ranch Hand

Joined: Sep 14, 2009
Posts: 45
I have downloaded tomcat6.zip 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
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Configure tomcat6