logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Login and Password for Tomcat 7
Author
samchan



Joined: 05 Dec 2010
Posts: 3

PostPosted: Sun 05 Dec '10 13:12    Post subject: Login and Password for Tomcat 7 Reply with quote

I am unable to get A username and password requested by http://127.0.0.1:8080. "Tomcat Manager Application"

I created userid and password in tomcat-users.xml but still does not help.

Kindly help
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 06 Dec '10 1:41    Post subject: Reply with quote

did you define the roles?

roles="admin,manager"
Back to top
samchan



Joined: 05 Dec 2010
Posts: 3

PostPosted: Mon 06 Dec '10 13:40    Post subject: Hi James ! Still no help ! please help ! Reply with quote

This what I have added, anything incorrect !

<!--
<role rolename="manager-script"/>
<user username="sam" password="chan" roles="admin,manager"/>
-->
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 06 Dec '10 15:23    Post subject: Reply with quote

You need to remove the <!-- and --> else it doesn't work cause it is commented out Wink
Back to top
irsh



Joined: 09 Oct 2012
Posts: 1
Location: India

PostPosted: Tue 09 Oct '12 20:51    Post subject: Tomcat 7 UserName and Password Reply with quote

C:\Tomcat 7.0\conf open in notepad => "tomcat-users.xml"

Add following lines in above file :-

<tomcat-users>
<role rolename="manager-gui"/>
<user username="admin" password="" roles="manager-gui"/>

<role rolename="admin-gui"/>
<user username="tomcat" password="s3cret" roles="admin-gui"/>
</tomcat-users>
**Note :
1.) "admin-gui" -> Username & Password - Do not Change.

2.) "manager-gui" -> you can change user name & password for this only. [Here password is not given]

By, Irshad Khan
Back to top


Reply to topic   Topic: Login and Password for Tomcat 7 View previous topic :: View next topic
Post new topic   Forum Index -> Apache