By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,257 Members | 928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,257 IT Pros & Developers. It's quick & easy.

Tomcat Admin password forgotten

P: n/a
D E
When using my web application manager
(http://localhost:8080/admin)
I forgot my password. Is there an XML file i can look at to remember/obtain
(possibly even set).
Thanks
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a

"D E" <no*****@nothing.com> wrote in message
news:hn******************@nwrdny01.gnilink.net...
When using my web application manager
(http://localhost:8080/admin)
I forgot my password. Is there an XML file i can look at to remember/obtain (possibly even set).
Thanks


Check tomcat-users.xml in the conf directory
Jul 17 '05 #2

P: n/a
D E

"Murray" <pa***@SPAMoffSPAMMER.optusSP4Mnet.com.au> wrote in message
news:40***********************@news.optusnet.com.a u...

"D E" <no*****@nothing.com> wrote in message
news:hn******************@nwrdny01.gnilink.net...
When using my web application manager
(http://localhost:8080/admin)
I forgot my password. Is there an XML file i can look at to

remember/obtain
(possibly even set).
Thanks


Check tomcat-users.xml in the conf directory

Ok i used the name/password found there with role "tomcat" (default name/pw
= tomcat/tomcat) and it didn't work. now when i go to the url
http:localhost:8080/admin, i get a httpstatus 403 (access to specified
resource has been forbidden)....

How do i "reset" this...

Was that the correct role? If this helps, here is a copy of my
tomcat-users.xml file..

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>
Jul 17 '05 #3

P: n/a
> Was that the correct role? If this helps, here is a copy of my
tomcat-users.xml file..

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>


Add this:

<role name="admin"/>
<user name="admin" password="whatever" roles="admin"/>
Jul 17 '05 #4

P: n/a
"Murray" <pa***@SPAMoffSPAMMER.optusSP4Mnet.com.au> wrote in message
news:40***********************@news.optusnet.com.a u...
Was that the correct role? If this helps, here is a copy of my
tomcat-users.xml file..

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>


Add this:

<role name="admin"/>
<user name="admin" password="whatever" roles="admin"/>

I believe to access the manager, you need the "manager" role, and it's
"rolename" and "username", not just "name", so for a user that can access
both the admin and manager tools:
<role rolename="manager" />
<role rolename="admin" />
<user username="yourUserName" password="yourPassword"
roles="admin,manager" />

I'm not sure what the "tomcat" role is, but I don't think it's related to
either the admin or manager tool.
Jul 17 '05 #5

P: n/a
[This followup was posted to comp.lang.java.programmer]

In article <hn******************@nwrdny01.gnilink.net>,
no*****@nothing.com says...
When using my web application manager
(http://localhost:8080/admin)
I forgot my password. Is there an XML file i can look at to remember/obtain
(possibly even set).
Thanks

Check the "conf/tomcat-users.xml" file under your Tomcat distribution.
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.