You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Samuel V. Green III" <ma...@cox.net> on 2004/08/01 14:34:30 UTC

Re: [tomcat] Re: Understanding tomcat web administration tool.

With respect to " <user username="samuel" password="samuel"
roles="tomcat,role1,manager,admin"/>

When I attempt a login at the Admin. Tool screen I'm entering
	UserName :  samuel
	Password :    samuel

I get the following errors:
         HTTP Status 400 - Invalid direct reference to form login page

And when examining  localhost_log.2004-08-01.txt

I see these errors:

2004-08-01 04:20:52 StandardHost[localhost]: Error deploying 
application at context path null
java.lang.IllegalStateException: Context path /admin is already in use

2004-08-01 04:20:52 HostConfig[localhost] Error deploying configuration 
descriptor adminsample.xml
java.io.IOException: java.lang.IllegalStateException: Context path 
/admin is already in use

What do you mean by "properly configuring jsp support?"
My jsp-examples page loads and works fine.

Thanks,

Samuel.

On Jul 31, 2004, at 6:57 PM, Ernesto Echeverría wrote:

> What kind of messages are you getting instead of the login screen? 
> Examined
> the logs already? I think admin is a struts app so you need jsp support
> properly configured. Have you checked the jsp-examples page?
>
>
> José Ernesto Echeverría
> ernestoe@telemovil.net
> Tel. (503)8859011
>
>
> -----Original Message-----
> From: Samuel V. Green III [mailto:macunkie@cox.net]
> Sent: Sábado, 31 de Julio de 2004 07:49 p.m.
> To: Tomcat Users List
> Subject: Re: [tomcat] Re: Understanding tomcat web administration tool.
>
> Thanks Ernesto.
>
> I copied your code , restarted tomcat and still no luck with getting 
> admin
> tool to load.
> Although Manager does work?
>
> Samuel.
> On Jul 31, 2004, at 5:52 PM, Ernesto Echeverría wrote:
>
>> What about deleting the 2nd tomcat user definition? You can use
>> roles="tomcat,admin,manager".
>>
>> Take a look at my file:
>>
>> <?xml version='1.0' encoding='utf-8'?> <tomcat-users>
>>   <role rolename="tomcat"/>
>>   <role rolename="role1"/>
>>   <role rolename="manager"/>
>>   <role rolename="admin"/>
>>   <user username="tomcat" password="tomcat"
>> roles="tomcat,role1,manager,admin"/>
>>   <user username="role1" password="tomcat" roles="role1"/>
>>   <user username="both" password="tomcat" roles="tomcat,role1"/>
>>   <user username="ernestoe" password="ernestoe"
>> roles="tomcat,role1,manager,admin"/>
>> </tomcat-users>
>>
>>
>> José Ernesto Echeverría
>> ernestoe@telemovil.net
>> Tel. (503)8859011
>>
>>
>> -----Original Message-----
>> From: Samuel V. Green III [mailto:macunkie@cox.net]
>> Sent: Sábado, 31 de Julio de 2004 06:41 p.m.
>> To: Tomcat Users List
>> Subject: [tomcat] Re: Understanding tomcat web administration tool.
>>
>>> Hi,
>>> Out of the box, you don't need to edit admin.xml or manager.xml.  You
>>> just need to add a user with roles of admin and manager to the
>>> tomcat-users.xml file and restart the server.
>>>
>>> Yoav Shapira
>>> Millennium Research Informatics
>>>
>>>
>>
>>
>>
>>
>> I'm still having problems getting Admin Tool to work:
>>
>> Here is my interpretation of editing tomcat-users.xml to get it to
>> work.
>>
>> <?xml version='1.0' encoding='utf-8'?>
>> <tomcat-users>
>>    <role rolename="tomcat"/>
>>    <role rolename="role1"/>
>>    <role rolename="manager"/>
>>    <role rolename="admin"/>
>>    <user username="tomcat" password="tomcat" roles="admin,manager"/>
>>    <user username="tomcat" password="tomcat" roles="tomcat"/>
>>    <user username="both" password="tomcat" roles="tomcat,role1"/>
>>    <user username="role1" password="tomcat" roles="role1"/>
>> </tomcat-users>
>>
>> What am I doing incorrect?
>>
>> Thanks,
>>
>> Samuel.
>>
>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [tomcat] Re: Understanding tomcat web administration tool.

Posted by Dennis Dai <dd...@ddai.net>.
The "HTTP Status 400 - Invalid direct reference to form login page" 
error is because you've stayed in the login page for too long that the 
session associated with that login has expired.

It works something like this in tomcat:

When you request a protected resource and you're not authenticated 
(either first time visit or previous session expired), a new session is 
created and the request (URL and query string if any) is saved in the 
session (in the part that internal to tomcat and not visible to webapp I 
believe). Then you're forwarded to the login page. After you put in your 
login credentials and the authentication is successful, the saved 
request is pulled out and you're redirected to the original requested 
resource.

If that session expired and thus the server couldn't find the saved 
request, you'll get that "Invalid direct reference to form login page" 
error.

This is part of the servlet spec and while I think it's a very nice 
idea, it doesn't work well if the request resource rely on some session 
objects which wouldn't be available with the new session.

On 8/1/2004 5:34 AM, Samuel V.Green III wrote:

> With respect to " <user username="samuel" password="samuel"
> roles="tomcat,role1,manager,admin"/>
> 
> When I attempt a login at the Admin. Tool screen I'm entering
> 	UserName :  samuel
> 	Password :    samuel
> 
> I get the following errors:
>          HTTP Status 400 - Invalid direct reference to form login page
> 
> And when examining  localhost_log.2004-08-01.txt
> 
> I see these errors:
> 
> 2004-08-01 04:20:52 StandardHost[localhost]: Error deploying 
> application at context path null
> java.lang.IllegalStateException: Context path /admin is already in use
> 
> 2004-08-01 04:20:52 HostConfig[localhost] Error deploying configuration 
> descriptor adminsample.xml
> java.io.IOException: java.lang.IllegalStateException: Context path 
> /admin is already in use
> 
> What do you mean by "properly configuring jsp support?"
> My jsp-examples page loads and works fine.
> 
> Thanks,
> 
> Samuel.
> 

-- 
Dennis Dai
ddai@ddai.net

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: [tomcat] Re: Understanding tomcat web administration tool.

Posted by Ernesto Echeverría <er...@telemovil.net>.
Proper jsp support meaning that you have the javac defined in the classpath
and that jsp files work fine under your installation.

Considering you have access to the manager app, what about stopping &
restarting admin, do you get errors on screen or do you get an OK message?

That application is under the server/webapps directory... Not under the
regular webapps.


José Ernesto Echeverría
ernestoe@telemovil.net
Tel. (503)8859011
 

-----Original Message-----
From: Samuel V. Green III [mailto:macunkie@cox.net] 
Sent: Domingo, 01 de Agosto de 2004 06:46 a.m.
To: Tomcat Users List
Subject: Re: [tomcat] Re: Understanding tomcat web administration tool.

I now logged out and am getting errors again?

Why did it work for a "split-second"?

Samuel.
On Aug 1, 2004, at 5:38 AM, Samuel V. Green III wrote:

> I clicked on /admin from within the manager app and entered username 
> and password and WALA!
> it now works?  Who knows?
>
> Samuel.
> On Aug 1, 2004, at 5:34 AM, Samuel V. Green III wrote:
>
>> With respect to " <user username="samuel" password="samuel"
>> roles="tomcat,role1,manager,admin"/>
>>
>> When I attempt a login at the Admin. Tool screen I'm entering
>> 	UserName :  samuel
>> 	Password :    samuel
>>
>> I get the following errors:
>>         HTTP Status 400 - Invalid direct reference to form login page
>>
>> And when examining  localhost_log.2004-08-01.txt
>>
>> I see these errors:
>>
>> 2004-08-01 04:20:52 StandardHost[localhost]: Error deploying 
>> application at context path null
>> java.lang.IllegalStateException: Context path /admin is already in 
>> use
>>
>> 2004-08-01 04:20:52 HostConfig[localhost] Error deploying 
>> configuration descriptor adminsample.xml
>> java.io.IOException: java.lang.IllegalStateException: Context path 
>> /admin is already in use
>>
>> What do you mean by "properly configuring jsp support?"
>> My jsp-examples page loads and works fine.
>>
>> Thanks,
>>
>> Samuel.
>>
>> On Jul 31, 2004, at 6:57 PM, Ernesto Echeverría wrote:
>>
>>> What kind of messages are you getting instead of the login screen?  
>>> Examined
>>> the logs already? I think admin is a struts app so you need jsp 
>>> support properly configured. Have you checked the jsp-examples page?
>>>
>>>
>>> José Ernesto Echeverría
>>> ernestoe@telemovil.net
>>> Tel. (503)8859011
>>>
>>>
>>> -----Original Message-----
>>> From: Samuel V. Green III [mailto:macunkie@cox.net]
>>> Sent: Sábado, 31 de Julio de 2004 07:49 p.m.
>>> To: Tomcat Users List
>>> Subject: Re: [tomcat] Re: Understanding tomcat web administration 
>>> tool.
>>>
>>> Thanks Ernesto.
>>>
>>> I copied your code , restarted tomcat and still no luck with getting 
>>> admin tool to load.
>>> Although Manager does work?
>>>
>>> Samuel.
>>> On Jul 31, 2004, at 5:52 PM, Ernesto Echeverría wrote:
>>>
>>>> What about deleting the 2nd tomcat user definition? You can use 
>>>> roles="tomcat,admin,manager".
>>>>
>>>> Take a look at my file:
>>>>
>>>> <?xml version='1.0' encoding='utf-8'?> <tomcat-users>
>>>>   <role rolename="tomcat"/>
>>>>   <role rolename="role1"/>
>>>>   <role rolename="manager"/>
>>>>   <role rolename="admin"/>
>>>>   <user username="tomcat" password="tomcat"
>>>> roles="tomcat,role1,manager,admin"/>
>>>>   <user username="role1" password="tomcat" roles="role1"/>
>>>>   <user username="both" password="tomcat" roles="tomcat,role1"/>
>>>>   <user username="ernestoe" password="ernestoe"
>>>> roles="tomcat,role1,manager,admin"/>
>>>> </tomcat-users>
>>>>
>>>>
>>>> José Ernesto Echeverría
>>>> ernestoe@telemovil.net
>>>> Tel. (503)8859011
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Samuel V. Green III [mailto:macunkie@cox.net]
>>>> Sent: Sábado, 31 de Julio de 2004 06:41 p.m.
>>>> To: Tomcat Users List
>>>> Subject: [tomcat] Re: Understanding tomcat web administration tool.
>>>>
>>>>> Hi,
>>>>> Out of the box, you don't need to edit admin.xml or manager.xml.   
>>>>> You
>>>>> just need to add a user with roles of admin and manager to the 
>>>>> tomcat-users.xml file and restart the server.
>>>>>
>>>>> Yoav Shapira
>>>>> Millennium Research Informatics
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> I'm still having problems getting Admin Tool to work:
>>>>
>>>> Here is my interpretation of editing tomcat-users.xml to get it to 
>>>> work.
>>>>
>>>> <?xml version='1.0' encoding='utf-8'?> <tomcat-users>
>>>>    <role rolename="tomcat"/>
>>>>    <role rolename="role1"/>
>>>>    <role rolename="manager"/>
>>>>    <role rolename="admin"/>
>>>>    <user username="tomcat" password="tomcat" roles="admin,manager"/>
>>>>    <user username="tomcat" password="tomcat" roles="tomcat"/>
>>>>    <user username="both" password="tomcat" roles="tomcat,role1"/>
>>>>    <user username="role1" password="tomcat" roles="role1"/> 
>>>> </tomcat-users>
>>>>
>>>> What am I doing incorrect?
>>>>
>>>> Thanks,
>>>>
>>>> Samuel.
>>>>
>>>>
>>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> -
>>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: 
>>>> tomcat-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> -
>>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: 
>>>> tomcat-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [tomcat] Re: Understanding tomcat web administration tool.

Posted by "Samuel V. Green III" <ma...@cox.net>.
I now logged out and am getting errors again?

Why did it work for a "split-second"?

Samuel.
On Aug 1, 2004, at 5:38 AM, Samuel V. Green III wrote:

> I clicked on /admin from within the manager app and entered username  
> and password and WALA!
> it now works?  Who knows?
>
> Samuel.
> On Aug 1, 2004, at 5:34 AM, Samuel V. Green III wrote:
>
>> With respect to " <user username="samuel" password="samuel"
>> roles="tomcat,role1,manager,admin"/>
>>
>> When I attempt a login at the Admin. Tool screen I'm entering
>> 	UserName :  samuel
>> 	Password :    samuel
>>
>> I get the following errors:
>>         HTTP Status 400 - Invalid direct reference to form login page
>>
>> And when examining  localhost_log.2004-08-01.txt
>>
>> I see these errors:
>>
>> 2004-08-01 04:20:52 StandardHost[localhost]: Error deploying  
>> application at context path null
>> java.lang.IllegalStateException: Context path /admin is already in use
>>
>> 2004-08-01 04:20:52 HostConfig[localhost] Error deploying  
>> configuration descriptor adminsample.xml
>> java.io.IOException: java.lang.IllegalStateException: Context path  
>> /admin is already in use
>>
>> What do you mean by "properly configuring jsp support?"
>> My jsp-examples page loads and works fine.
>>
>> Thanks,
>>
>> Samuel.
>>
>> On Jul 31, 2004, at 6:57 PM, Ernesto Echeverría wrote:
>>
>>> What kind of messages are you getting instead of the login screen?  
>>> Examined
>>> the logs already? I think admin is a struts app so you need jsp  
>>> support
>>> properly configured. Have you checked the jsp-examples page?
>>>
>>>
>>> José Ernesto Echeverría
>>> ernestoe@telemovil.net
>>> Tel. (503)8859011
>>>
>>>
>>> -----Original Message-----
>>> From: Samuel V. Green III [mailto:macunkie@cox.net]
>>> Sent: Sábado, 31 de Julio de 2004 07:49 p.m.
>>> To: Tomcat Users List
>>> Subject: Re: [tomcat] Re: Understanding tomcat web administration  
>>> tool.
>>>
>>> Thanks Ernesto.
>>>
>>> I copied your code , restarted tomcat and still no luck with getting  
>>> admin
>>> tool to load.
>>> Although Manager does work?
>>>
>>> Samuel.
>>> On Jul 31, 2004, at 5:52 PM, Ernesto Echeverría wrote:
>>>
>>>> What about deleting the 2nd tomcat user definition? You can use
>>>> roles="tomcat,admin,manager".
>>>>
>>>> Take a look at my file:
>>>>
>>>> <?xml version='1.0' encoding='utf-8'?> <tomcat-users>
>>>>   <role rolename="tomcat"/>
>>>>   <role rolename="role1"/>
>>>>   <role rolename="manager"/>
>>>>   <role rolename="admin"/>
>>>>   <user username="tomcat" password="tomcat"
>>>> roles="tomcat,role1,manager,admin"/>
>>>>   <user username="role1" password="tomcat" roles="role1"/>
>>>>   <user username="both" password="tomcat" roles="tomcat,role1"/>
>>>>   <user username="ernestoe" password="ernestoe"
>>>> roles="tomcat,role1,manager,admin"/>
>>>> </tomcat-users>
>>>>
>>>>
>>>> José Ernesto Echeverría
>>>> ernestoe@telemovil.net
>>>> Tel. (503)8859011
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Samuel V. Green III [mailto:macunkie@cox.net]
>>>> Sent: Sábado, 31 de Julio de 2004 06:41 p.m.
>>>> To: Tomcat Users List
>>>> Subject: [tomcat] Re: Understanding tomcat web administration tool.
>>>>
>>>>> Hi,
>>>>> Out of the box, you don't need to edit admin.xml or manager.xml.   
>>>>> You
>>>>> just need to add a user with roles of admin and manager to the
>>>>> tomcat-users.xml file and restart the server.
>>>>>
>>>>> Yoav Shapira
>>>>> Millennium Research Informatics
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> I'm still having problems getting Admin Tool to work:
>>>>
>>>> Here is my interpretation of editing tomcat-users.xml to get it to
>>>> work.
>>>>
>>>> <?xml version='1.0' encoding='utf-8'?>
>>>> <tomcat-users>
>>>>    <role rolename="tomcat"/>
>>>>    <role rolename="role1"/>
>>>>    <role rolename="manager"/>
>>>>    <role rolename="admin"/>
>>>>    <user username="tomcat" password="tomcat" roles="admin,manager"/>
>>>>    <user username="tomcat" password="tomcat" roles="tomcat"/>
>>>>    <user username="both" password="tomcat" roles="tomcat,role1"/>
>>>>    <user username="role1" password="tomcat" roles="role1"/>
>>>> </tomcat-users>
>>>>
>>>> What am I doing incorrect?
>>>>
>>>> Thanks,
>>>>
>>>> Samuel.
>>>>
>>>>
>>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [tomcat] Re: Understanding tomcat web administration tool.

Posted by Michael Echerer <me...@tngtech.com>.
>> And when examining  localhost_log.2004-08-01.txt
>>
>> I see these errors:
>>
>> 2004-08-01 04:20:52 StandardHost[localhost]: Error deploying 
>> application at context path null
>> java.lang.IllegalStateException: Context path /admin is already in use
>>
>> 2004-08-01 04:20:52 HostConfig[localhost] Error deploying 
>> configuration descriptor adminsample.xml
>> java.io.IOException: java.lang.IllegalStateException: Context path 
>> /admin is already in use

This looks like the admin context was not deployed properly or you try 
to deploy it twice.
What is this adminsample.xml? You should get it removed. Check your 
conf/Catalina/localhost/ xml deployment descriptor files. Looks like you 
try to deploy something twice in the admin context.

Maybe it's also a good idea if you try to start over with a fresh tomcat 
installation and only adjust the tomcat-users.xml again.
This adminsample.xml must be something custom, so I guess you messed 
something up already that makes trouble.

Greetings!
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [tomcat] Re: Understanding tomcat web administration tool.

Posted by "Samuel V. Green III" <ma...@cox.net>.
I clicked on /admin from within the manager app and entered username 
and password and WALA!
it now works?  Who knows?

Samuel.
On Aug 1, 2004, at 5:34 AM, Samuel V. Green III wrote:

> With respect to " <user username="samuel" password="samuel"
> roles="tomcat,role1,manager,admin"/>
>
> When I attempt a login at the Admin. Tool screen I'm entering
> 	UserName :  samuel
> 	Password :    samuel
>
> I get the following errors:
>         HTTP Status 400 - Invalid direct reference to form login page
>
> And when examining  localhost_log.2004-08-01.txt
>
> I see these errors:
>
> 2004-08-01 04:20:52 StandardHost[localhost]: Error deploying 
> application at context path null
> java.lang.IllegalStateException: Context path /admin is already in use
>
> 2004-08-01 04:20:52 HostConfig[localhost] Error deploying 
> configuration descriptor adminsample.xml
> java.io.IOException: java.lang.IllegalStateException: Context path 
> /admin is already in use
>
> What do you mean by "properly configuring jsp support?"
> My jsp-examples page loads and works fine.
>
> Thanks,
>
> Samuel.
>
> On Jul 31, 2004, at 6:57 PM, Ernesto Echeverría wrote:
>
>> What kind of messages are you getting instead of the login screen? 
>> Examined
>> the logs already? I think admin is a struts app so you need jsp 
>> support
>> properly configured. Have you checked the jsp-examples page?
>>
>>
>> José Ernesto Echeverría
>> ernestoe@telemovil.net
>> Tel. (503)8859011
>>
>>
>> -----Original Message-----
>> From: Samuel V. Green III [mailto:macunkie@cox.net]
>> Sent: Sábado, 31 de Julio de 2004 07:49 p.m.
>> To: Tomcat Users List
>> Subject: Re: [tomcat] Re: Understanding tomcat web administration 
>> tool.
>>
>> Thanks Ernesto.
>>
>> I copied your code , restarted tomcat and still no luck with getting 
>> admin
>> tool to load.
>> Although Manager does work?
>>
>> Samuel.
>> On Jul 31, 2004, at 5:52 PM, Ernesto Echeverría wrote:
>>
>>> What about deleting the 2nd tomcat user definition? You can use
>>> roles="tomcat,admin,manager".
>>>
>>> Take a look at my file:
>>>
>>> <?xml version='1.0' encoding='utf-8'?> <tomcat-users>
>>>   <role rolename="tomcat"/>
>>>   <role rolename="role1"/>
>>>   <role rolename="manager"/>
>>>   <role rolename="admin"/>
>>>   <user username="tomcat" password="tomcat"
>>> roles="tomcat,role1,manager,admin"/>
>>>   <user username="role1" password="tomcat" roles="role1"/>
>>>   <user username="both" password="tomcat" roles="tomcat,role1"/>
>>>   <user username="ernestoe" password="ernestoe"
>>> roles="tomcat,role1,manager,admin"/>
>>> </tomcat-users>
>>>
>>>
>>> José Ernesto Echeverría
>>> ernestoe@telemovil.net
>>> Tel. (503)8859011
>>>
>>>
>>> -----Original Message-----
>>> From: Samuel V. Green III [mailto:macunkie@cox.net]
>>> Sent: Sábado, 31 de Julio de 2004 06:41 p.m.
>>> To: Tomcat Users List
>>> Subject: [tomcat] Re: Understanding tomcat web administration tool.
>>>
>>>> Hi,
>>>> Out of the box, you don't need to edit admin.xml or manager.xml.  
>>>> You
>>>> just need to add a user with roles of admin and manager to the
>>>> tomcat-users.xml file and restart the server.
>>>>
>>>> Yoav Shapira
>>>> Millennium Research Informatics
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> I'm still having problems getting Admin Tool to work:
>>>
>>> Here is my interpretation of editing tomcat-users.xml to get it to
>>> work.
>>>
>>> <?xml version='1.0' encoding='utf-8'?>
>>> <tomcat-users>
>>>    <role rolename="tomcat"/>
>>>    <role rolename="role1"/>
>>>    <role rolename="manager"/>
>>>    <role rolename="admin"/>
>>>    <user username="tomcat" password="tomcat" roles="admin,manager"/>
>>>    <user username="tomcat" password="tomcat" roles="tomcat"/>
>>>    <user username="both" password="tomcat" roles="tomcat,role1"/>
>>>    <user username="role1" password="tomcat" roles="role1"/>
>>> </tomcat-users>
>>>
>>> What am I doing incorrect?
>>>
>>> Thanks,
>>>
>>> Samuel.
>>>
>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org