473,473 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Tomcat Admin password forgotten

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
5 37978

"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
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
> 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
"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
[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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: DaiIchi | last post by:
I'm using Tomcat in standalone mode. When a URL without a filename is entered into the browser (ie. "http://myhost.mydomain.com"), and the default path does NOT have an index.html, but rather an...
0
by: - e - | last post by:
Hi everybody! I download and installed Tomcat 4.1.3 on HP-UX 11.11, I think everything was OK on the installation process. Tomcat is working, first page (http://my-ip-address:8080/index.jsp) is...
0
by: s dogwood | last post by:
I'm fairly new to configuring server.xml and web.xml files in tomcat 4. I am trying to require password authentication for access to a subdirectory called "update" located within ROOT. I want all...
2
by: serene | last post by:
i create a html login page.. so after i click login, the tomcat appear a error sentence which says something like java.sql.SQLExcepton etc Syntax error in FROM clause.... the folowing java code are...
3
by: danish | last post by:
hi everyone..sorry everyone if ive posted on the wrong group but i really needed help.... i wan tto start jakarta-tomcat-5.5.3 from the webbrowser using the sheel scripts...i normally use the...
8
by: Katash | last post by:
Hello, I am new to PHP and am working on a login system for my site, currently supplied passwords are passed to MySQL and stored as md5 hashes, my question is :- seeing as md5 is 1 way only what...
0
by: Elvandar | last post by:
<p> Hi all. I've a web application running under tomcat 5.0.28. Sometimes, after a couple of days of 24h running of the server, suddenly it becames impossibile to log in the application, until...
1
by: kommaraju | last post by:
iam a starter to db2 & jdbc.i have a servlet program which connects to ibm db2 using jdbc.when i run this using apache tomcat 4.1.34 , it is showing a error message of HTTP STATUS 500 my jdbc...
0
by: rugman | last post by:
Hi. Let me immediately declare - I'm a designer/owner of a website written in jsp pages running under Apache Tomcat 5.5.25. I make simple changes to code but don't understand much about...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.