The original tomcat-users.xml should look like the text below:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager" description="Role to run the 'Application Manager Tool'"/>
  <role rolename="admin" description="Role to run the 'Administration Tool'"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>


Change it to look like this:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager" description="Role to run the 'Application Manager Tool'"/>
  <role rolename="admin" description="Role to run the 'Administration Tool'"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="foo" password="bar" fullName="id for the adm and mgr tools" 
roles="admin,manager"/>
</tomcat-users> 

Save the file and restart tomcat. You should be able to sign in to both applications.
Please use a better username and password than my example of "foo" and "bar".
 
-----Original Message-----
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 11:23 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Tomcat Admin tool Setup


Hi,

Tomcat should run for you outof box. You dont need to make any changes to
run the examples.

There is no tomcat4.conf in the conf directory. And which java pages you are
including in that direcotry?

Raj Saini
----- Original Message -----
From: "Medha Parthasarathy Iyengar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 4:18 PM
Subject: Tomcat Admin tool Setup


> Hi, I am learner java and tomcat. I have installed tomcat 4.1.10 and
> java jdk1.4.1. I have changed the tomcat4.conf in
> /var/tomcat4/conf/tomcat4.conf to include the correct page of java. On
> my brower, the system comes and stop here
> http://localhost:8080/index.jsp When i try to click on Tomcat
> Administration or Tomcat Manager, It is asking for userid and password.
> As suggest and i have made changes in the tomcat-users.xml and the same
> look as under : =========================================== <?xml
> version='1.0' encoding='utf-8'?>
> =========================================== STill the password has not
> got set ot the above in the tomcat-user.xml. Assist me in getting the
> web administration and manager tool to work. Regards Medha -- To
> unsubscribe, e-mail: For additional commands, e-mail: tsdok
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to