You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by testwreq wreq <te...@gmail.com> on 2010/05/07 15:03:44 UTC

tomcat administration

I have a new installation of tomcat on centos. My $CATALINA_HOME is
/usr/share/tomcat5 and tomcat is running.

http://localhost:8080 brings up the tomcat page & one of the option is
"Administration". I would like to use this web interface and even give some
of the test webapp users ability to restart tomcat.

According to the home page, users are defined in
$CATALINA_HOME/conf/tomcat-users.xml. Currently my file has the following
content
 more tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>

I tried logging to the administration web interface with tomcat/tomcat but
it did not work. Can anyone guide to configure this file? I am very new to
tomcat.

Thank you.

Re: tomcat administration

Posted by André Warnier <aw...@ice-sa.com>.
testwreq wreq wrote:
> I have a new installation of tomcat on centos. My $CATALINA_HOME is
> /usr/share/tomcat5 and tomcat is running.
> 
> http://localhost:8080 brings up the tomcat page & one of the option is
> "Administration". I would like to use this web interface and even give some
> of the test webapp users ability to restart tomcat.
>
No webapp will give you that last option.
A webapp may allow one to stop Tomcat, but then you'd have a problem.

> According to the home page, users are defined in
> $CATALINA_HOME/conf/tomcat-users.xml. Currently my file has the following
> content
>  more tomcat-users.xml
> <?xml version='1.0' encoding='utf-8'?>
> <tomcat-users>
>   <role rolename="tomcat"/>
>   <role rolename="role1"/>
>   <user username="tomcat" password="tomcat" roles="tomcat"/>
>   <user username="both" password="tomcat" roles="tomcat,role1"/>
>   <user username="role1" password="tomcat" roles="role1"/>
> </tomcat-users>
> 
> I tried logging to the administration web interface with tomcat/tomcat but
> it did not work. Can anyone guide to configure this file? I am very new to
> tomcat.
> 
If you view CATALINA_HOME/server/webapps/manager/WEB-INF/web.xml, at the 
end you will see that it requires a user with the role "manager".
So above add :

    <role rolename="manager"/>
and modify
    <user username="tomcat" password="*******" roles="tomcat,manager"/>
(or add another user with that role)

That will allow you to access the Manager application.
For the "Admin" application however, I'm not sure, but it must be 
something similar.

I seem to remember however that the Admin application is no longer 
developed or supported or both.  But I cannot immediately find a 
reference to it on the Tomcat site.

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


Re: tomcat administration

Posted by Ognjen Blagojevic <og...@gmail.com>.
testwreq wreq wrote:
> http://localhost:8080 brings up the tomcat page & one of the option is
> "Administration". I would like to use this web interface and even give some
> of the test webapp users ability to restart tomcat.

What is the URL of the administration application? Is it something that 
ends like /manager/html, it must be Tomcat Manager application. That 
application needs a user in role "manager".

> 
> $CATALINA_HOME/conf/tomcat-users.xml. Currently my file has the following
>   <user username="tomcat" password="tomcat" roles="tomcat"/>

Just change roles="tomcat" to roles="manager", restart Tomcat, and try 
again.

Also, consider changing password.

-Ognjen

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


Re: tomcat administration

Posted by Timothy J Schumacher <Ti...@Colorado.EDU>.
Oops, I missed the requirement to keep the admin/manager app up - 
correct, you cannot keep the admin app (or any other app) up while you 
restart tomcat, but you can do a full restart and sit and wait and hope 
your newly created process doesn't crash or hang...

Tim

Pid wrote:
> On 07/05/2010 18:20, Timothy J Schumacher wrote:
>   
>>> I would like to give some test application users ability to start &
>>> restart
>>> the tomcat server but not the entire admin / manager interface.
>>>       
>> Actually this is possible in linux at least, though be very wary... 
>>     
>
> No, it's clearly not.
> You can't keep the admin app up, if the server is down.
>
>   
>> one
>> can shell out of java and call things using nohup with run in the
>> background (trailing &) or use setsid(), after that the new process is
>> not connected to tomcat so it could restart tomcat.  I have done this
>> and it works, though it's more academic and I wouldn't recommend writing
>> things like that :)
>>     
>
> You can shoot yourself in the foot too, if you have adequate medical
> insurance.
>
>
> p
>
>
>   
>> -Tim
>>
>>
>> testwreq wreq wrote:
>>     
>>> I entered the following line <user name="ad" password="pw"
>>> roles="admin,manager" /> in tomcat-users.xm file. I can login to the
>>> admin
>>> http://localhost:8080/admin/ and application manager
>>> http://localhost:8080/manager/html
>>>
>>> I would like to give some test application users ability to start &
>>> restart
>>> the tomcat server but not the entire admin / manager interface. Is it
>>> possible to configure this?
>>>
>>> I am told that when the application (jsp/servelet code) changes,
>>> tomcat has
>>> to restart to clear the old cache. Is it true?
>>>
>>> My tomcat version is 5.5.23
>>>
>>> thanks, vm
>>>
>>>
>>> On Fri, May 7, 2010 at 9:59 AM, Caldarale, Charles R <
>>> Chuck.Caldarale@unisys.com> wrote:
>>>
>>>  
>>>       
>>>>> From: testwreq wreq [mailto:testwreq@gmail.com]
>>>>> Subject: tomcat administration
>>>>>
>>>>> I have a new installation of tomcat on centos. My $CATALINA_HOME is
>>>>> /usr/share/tomcat5 and tomcat is running.
>>>>>       
>>>>>           
>>>> Care to tell us the *exact* version of Tomcat you installed?  And how
>>>> you
>>>> installed it?  (Is it a 3rd-party repackaged version, or a real one from
>>>> tomcat.apache.org?)
>>>>
>>>>    
>>>>         
>>>>> http://localhost:8080 brings up the tomcat page & one of the option is
>>>>> "Administration".
>>>>>       
>>>>>           
>>>> That looks like it comes from a defunct 5.0.x version, which has not
>>>> been
>>>> supported for quite some time now.  Install a current Tomcat from
>>>> tomcat.apache.org and try again.
>>>>
>>>>    
>>>>         
>>>>> I would like to use this web interface and even give
>>>>> some of the test webapp users ability to restart tomcat.
>>>>>       
>>>>>           
>>>> That's not going to happen, at least not via internal manipulation of
>>>> Tomcat.
>>>>
>>>>  - Chuck
>>>>
>>>>
>>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>>>> MATERIAL and is thus for use only by the intended recipient. If you
>>>> received
>>>> this in error, please contact the sender and delete the e-mail and its
>>>> attachments from all computers.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>>     
>>>>         
>>>   
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>     
>
>
>   

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


Re: tomcat administration

Posted by Pid <pi...@pidster.com>.
On 07/05/2010 18:20, Timothy J Schumacher wrote:
>> I would like to give some test application users ability to start &
>> restart
>> the tomcat server but not the entire admin / manager interface.
> 
> Actually this is possible in linux at least, though be very wary... 

No, it's clearly not.
You can't keep the admin app up, if the server is down.

> one
> can shell out of java and call things using nohup with run in the
> background (trailing &) or use setsid(), after that the new process is
> not connected to tomcat so it could restart tomcat.  I have done this
> and it works, though it's more academic and I wouldn't recommend writing
> things like that :)

You can shoot yourself in the foot too, if you have adequate medical
insurance.


p


> -Tim
> 
> 
> testwreq wreq wrote:
>> I entered the following line <user name="ad" password="pw"
>> roles="admin,manager" /> in tomcat-users.xm file. I can login to the
>> admin
>> http://localhost:8080/admin/ and application manager
>> http://localhost:8080/manager/html
>>
>> I would like to give some test application users ability to start &
>> restart
>> the tomcat server but not the entire admin / manager interface. Is it
>> possible to configure this?
>>
>> I am told that when the application (jsp/servelet code) changes,
>> tomcat has
>> to restart to clear the old cache. Is it true?
>>
>> My tomcat version is 5.5.23
>>
>> thanks, vm
>>
>>
>> On Fri, May 7, 2010 at 9:59 AM, Caldarale, Charles R <
>> Chuck.Caldarale@unisys.com> wrote:
>>
>>  
>>>> From: testwreq wreq [mailto:testwreq@gmail.com]
>>>> Subject: tomcat administration
>>>>
>>>> I have a new installation of tomcat on centos. My $CATALINA_HOME is
>>>> /usr/share/tomcat5 and tomcat is running.
>>>>       
>>> Care to tell us the *exact* version of Tomcat you installed?  And how
>>> you
>>> installed it?  (Is it a 3rd-party repackaged version, or a real one from
>>> tomcat.apache.org?)
>>>
>>>    
>>>> http://localhost:8080 brings up the tomcat page & one of the option is
>>>> "Administration".
>>>>       
>>> That looks like it comes from a defunct 5.0.x version, which has not
>>> been
>>> supported for quite some time now.  Install a current Tomcat from
>>> tomcat.apache.org and try again.
>>>
>>>    
>>>> I would like to use this web interface and even give
>>>> some of the test webapp users ability to restart tomcat.
>>>>       
>>> That's not going to happen, at least not via internal manipulation of
>>> Tomcat.
>>>
>>>  - Chuck
>>>
>>>
>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>>> MATERIAL and is thus for use only by the intended recipient. If you
>>> received
>>> this in error, please contact the sender and delete the e-mail and its
>>> attachments from all computers.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>     
>>
>>   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 



Re: tomcat administration

Posted by Timothy J Schumacher <Ti...@Colorado.EDU>.
>I would like to give some test application users ability to start & restart
>the tomcat server but not the entire admin / manager interface.

Actually this is possible in linux at least, though be very wary... one 
can shell out of java and call things using nohup with run in the 
background (trailing &) or use setsid(), after that the new process is 
not connected to tomcat so it could restart tomcat.  I have done this 
and it works, though it's more academic and I wouldn't recommend writing 
things like that :)

-Tim


testwreq wreq wrote:
> I entered the following line <user name="ad" password="pw"
> roles="admin,manager" /> in tomcat-users.xm file. I can login to the admin
> http://localhost:8080/admin/ and application manager
> http://localhost:8080/manager/html
>
> I would like to give some test application users ability to start & restart
> the tomcat server but not the entire admin / manager interface. Is it
> possible to configure this?
>
> I am told that when the application (jsp/servelet code) changes, tomcat has
> to restart to clear the old cache. Is it true?
>
> My tomcat version is 5.5.23
>
> thanks, vm
>
>
> On Fri, May 7, 2010 at 9:59 AM, Caldarale, Charles R <
> Chuck.Caldarale@unisys.com> wrote:
>
>   
>>> From: testwreq wreq [mailto:testwreq@gmail.com]
>>> Subject: tomcat administration
>>>
>>> I have a new installation of tomcat on centos. My $CATALINA_HOME is
>>> /usr/share/tomcat5 and tomcat is running.
>>>       
>> Care to tell us the *exact* version of Tomcat you installed?  And how you
>> installed it?  (Is it a 3rd-party repackaged version, or a real one from
>> tomcat.apache.org?)
>>
>>     
>>> http://localhost:8080 brings up the tomcat page & one of the option is
>>> "Administration".
>>>       
>> That looks like it comes from a defunct 5.0.x version, which has not been
>> supported for quite some time now.  Install a current Tomcat from
>> tomcat.apache.org and try again.
>>
>>     
>>> I would like to use this web interface and even give
>>> some of the test webapp users ability to restart tomcat.
>>>       
>> That's not going to happen, at least not via internal manipulation of
>> Tomcat.
>>
>>  - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you received
>> this in error, please contact the sender and delete the e-mail and its
>> attachments from all computers.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>     
>
>   

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


Re: tomcat administration

Posted by André Warnier <aw...@ice-sa.com>.
Caldarale, Charles R wrote:
>> From: testwreq wreq [mailto:testwreq@gmail.com]
>> Subject: Re: tomcat administration
>>
>> I would like to give some test application users ability to 
>> start & restart the tomcat server but not the entire admin /
>> manager interface. Is it possible to configure this?
> 
Allright, I cannot resist.
Suggestion :
Create a web application which returns one html page, and then does a 
system.exit.

And the return page would be
<html>
<head/>
<body>
<h1>And now ?</h1>
</body>
</html>

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


RE: tomcat administration

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: Re: tomcat administration
> 
> I would like to give some test application users ability to 
> start & restart the tomcat server but not the entire admin /
> manager interface. Is it possible to configure this?

Think about that: since the admin/manager interface is part of Tomcat, how would that be possible?

Also note that the admin interface has not been carried forward into current versions of Tomcat, so basing any procedures around it would be very short-sighted.

> I am told that when the application (jsp/servelet code) 
> changes, tomcat has to restart to clear the old cache.

You were told wrong.  As long as you properly redeploy webapps via the manager interface, all that is taken care of.  Your _browser_ might be caching things that you would need to get rid of.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


RE: tomcat administration

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: ziggy25@gmail.com [mailto:ziggy25@gmail.com]
> Subject: Re: tomcat administration
> 
> Does virtual hosting work on a single instance of tomcat and jvm?

Read the docs:
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

And Mark E's new WIKI entry:
http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts

Yes.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: tomcat administration

Posted by zi...@gmail.com.
Thanks for clarifying it. Does virtual hosting work on a single instance of tomcat and jvm?
Sent from my BlackBerry® smartphone

-----Original Message-----
From: "Caldarale, Charles R" <Ch...@unisys.com>
Date: Fri, 7 May 2010 14:18:45 
To: Tomcat Users List<us...@tomcat.apache.org>
Subject: RE: tomcat administration

> From: ziggy25@gmail.com [mailto:ziggy25@gmail.com]
> Subject: Re: tomcat administration
> 
> Also have a look at catalina base

That's for running multiple instances of Tomcat, which is another option but consumes more resources and requires multiple IP address or ports.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


RE: tomcat administration

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: ziggy25@gmail.com [mailto:ziggy25@gmail.com]
> Subject: Re: tomcat administration
> 
> Also have a look at catalina base

That's for running multiple instances of Tomcat, which is another option but consumes more resources and requires multiple IP address or ports.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: tomcat administration

Posted by zi...@gmail.com.
Also have a look at catalina base

Sent from my BlackBerry® smartphone

-----Original Message-----
From: testwreq wreq <te...@gmail.com>
Date: Fri, 7 May 2010 14:56:32 
To: Tomcat Users List<us...@tomcat.apache.org>
Subject: Re: tomcat administration

Thank you. I will read about virtua. hosting.

On Fri, May 7, 2010 at 12:12 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: testwreq wreq [mailto:testwreq@gmail.com]
> > Subject: Re: tomcat administration
> >
> > I need ability for users to stop and restart a single webapp
> > without having access to other webapps which do not belong to
> > them. Is this possible?
>
> Yes.  Use virtual hosting, so each user gets their own <Host> and appBase
> directory - and their own copy of the manager app and individualized
> <Realm>.  No one will be able to impact any other <Host>.
>
> http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


Re: tomcat administration

Posted by testwreq wreq <te...@gmail.com>.
Thank you. I will read about virtua. hosting.

On Fri, May 7, 2010 at 12:12 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: testwreq wreq [mailto:testwreq@gmail.com]
> > Subject: Re: tomcat administration
> >
> > I need ability for users to stop and restart a single webapp
> > without having access to other webapps which do not belong to
> > them. Is this possible?
>
> Yes.  Use virtual hosting, so each user gets their own <Host> and appBase
> directory - and their own copy of the manager app and individualized
> <Realm>.  No one will be able to impact any other <Host>.
>
> http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: tomcat administration

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: Re: tomcat administration
> 
> I need ability for users to stop and restart a single webapp
> without having access to other webapps which do not belong to
> them. Is this possible?

Yes.  Use virtual hosting, so each user gets their own <Host> and appBase directory - and their own copy of the manager app and individualized <Realm>.  No one will be able to impact any other <Host>.

http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


RE: tomcat administration

Posted by "La Spina, Massimo" <Ma...@ca.com>.
I don't think it is possible, but if you need this feature, you can
always extend/modify tomcat manager application...


-----Original Message-----
From: testwreq wreq [mailto:testwreq@gmail.com] 
 
[...]

I need ability for users to stop and restart a single webapp without
having
access to other webapps which do not belong to them. Is this possible?

[...]

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


Re: tomcat administration

Posted by testwreq wreq <te...@gmail.com>.
You are right. I should think before writing...(:

I need ability for users to stop and restart a single webapp without having
access to other webapps which do not belong to them. Is this possible?
2010/5/7 La Spina, Massimo <Ma...@ca.com>

> Hello.
>
> As somebody else already wrote, is not possible to stop/restart tomcat from
> the web interface, because the web interface itself is a web-application
> running into tomcat (so... to work it needs tomcat to be up and running...)
>
> You can stop and restart single webapps (if needed). Sometimes is enough to
> redeploy the application (copy the new jar file to webapps folder), without
> any further action required.
>
> I think you need to restart the whole server only when you want to update
> some shared libraries.
>
> Massimo
>
>
>
> -----Original Message-----
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Sent: 7. května 2010 16:49
> To: Tomcat Users List
>  Subject: Re: tomcat administration
>
> I entered the following line <user name="ad" password="pw"
> roles="admin,manager" /> in tomcat-users.xm file. I can login to the admin
> http://localhost:8080/admin/ and application manager
> http://localhost:8080/manager/html
>
> I would like to give some test application users ability to start & restart
> the tomcat server but not the entire admin / manager interface. Is it
> possible to configure this?
>
> I am told that when the application (jsp/servelet code) changes, tomcat has
> to restart to clear the old cache. Is it true?
>
> My tomcat version is 5.5.23
>
> thanks, vm
>
>
> On Fri, May 7, 2010 at 9:59 AM, Caldarale, Charles R <
> Chuck.Caldarale@unisys.com> wrote:
>
> > > From: testwreq wreq [mailto:testwreq@gmail.com]
> > > Subject: tomcat administration
> > >
> > > I have a new installation of tomcat on centos. My $CATALINA_HOME is
> > > /usr/share/tomcat5 and tomcat is running.
> >
> > Care to tell us the *exact* version of Tomcat you installed?  And how you
> > installed it?  (Is it a 3rd-party repackaged version, or a real one from
> > tomcat.apache.org?)
> >
> > > http://localhost:8080 brings up the tomcat page & one of the option is
> > > "Administration".
> >
> > That looks like it comes from a defunct 5.0.x version, which has not been
> > supported for quite some time now.  Install a current Tomcat from
> > tomcat.apache.org and try again.
> >
> > > I would like to use this web interface and even give
> > > some of the test webapp users ability to restart tomcat.
> >
> > That's not going to happen, at least not via internal manipulation of
> > Tomcat.
> >
> >  - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you
> received
> > this in error, please contact the sender and delete the e-mail and its
> > attachments from all computers.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: tomcat administration

Posted by "La Spina, Massimo" <Ma...@ca.com>.
Hello.

As somebody else already wrote, is not possible to stop/restart tomcat from the web interface, because the web interface itself is a web-application running into tomcat (so... to work it needs tomcat to be up and running...)

You can stop and restart single webapps (if needed). Sometimes is enough to redeploy the application (copy the new jar file to webapps folder), without any further action required.

I think you need to restart the whole server only when you want to update some shared libraries.

Massimo 



-----Original Message-----
From: testwreq wreq [mailto:testwreq@gmail.com] 
Sent: 7. května 2010 16:49
To: Tomcat Users List
Subject: Re: tomcat administration

I entered the following line <user name="ad" password="pw"
roles="admin,manager" /> in tomcat-users.xm file. I can login to the admin
http://localhost:8080/admin/ and application manager
http://localhost:8080/manager/html

I would like to give some test application users ability to start & restart
the tomcat server but not the entire admin / manager interface. Is it
possible to configure this?

I am told that when the application (jsp/servelet code) changes, tomcat has
to restart to clear the old cache. Is it true?

My tomcat version is 5.5.23

thanks, vm


On Fri, May 7, 2010 at 9:59 AM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: testwreq wreq [mailto:testwreq@gmail.com]
> > Subject: tomcat administration
> >
> > I have a new installation of tomcat on centos. My $CATALINA_HOME is
> > /usr/share/tomcat5 and tomcat is running.
>
> Care to tell us the *exact* version of Tomcat you installed?  And how you
> installed it?  (Is it a 3rd-party repackaged version, or a real one from
> tomcat.apache.org?)
>
> > http://localhost:8080 brings up the tomcat page & one of the option is
> > "Administration".
>
> That looks like it comes from a defunct 5.0.x version, which has not been
> supported for quite some time now.  Install a current Tomcat from
> tomcat.apache.org and try again.
>
> > I would like to use this web interface and even give
> > some of the test webapp users ability to restart tomcat.
>
> That's not going to happen, at least not via internal manipulation of
> Tomcat.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


RE: tomcat administration

Posted by "La Spina, Massimo" <Ma...@ca.com>.
Sorry for the typo... Below, I meant war file, not jar...



-----Original Message-----
From: La Spina, Massimo 
Sent: 7. května 2010 16:55
To: 'Tomcat Users List'
Subject: RE: tomcat administration

Hello.

As somebody else already wrote, is not possible to stop/restart tomcat from the web interface, because the web interface itself is a web-application running into tomcat (so... to work it needs tomcat to be up and running...)

You can stop and restart single webapps (if needed). Sometimes is enough to redeploy the application (copy the new jar file to webapps folder), without any further action required.

I think you need to restart the whole server only when you want to update some shared libraries.

Massimo 



-----Original Message-----
From: testwreq wreq [mailto:testwreq@gmail.com] 
Sent: 7. května 2010 16:49
To: Tomcat Users List
Subject: Re: tomcat administration

I entered the following line <user name="ad" password="pw"
roles="admin,manager" /> in tomcat-users.xm file. I can login to the admin
http://localhost:8080/admin/ and application manager
http://localhost:8080/manager/html

I would like to give some test application users ability to start & restart
the tomcat server but not the entire admin / manager interface. Is it
possible to configure this?

I am told that when the application (jsp/servelet code) changes, tomcat has
to restart to clear the old cache. Is it true?

My tomcat version is 5.5.23

thanks, vm


On Fri, May 7, 2010 at 9:59 AM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: testwreq wreq [mailto:testwreq@gmail.com]
> > Subject: tomcat administration
> >
> > I have a new installation of tomcat on centos. My $CATALINA_HOME is
> > /usr/share/tomcat5 and tomcat is running.
>
> Care to tell us the *exact* version of Tomcat you installed?  And how you
> installed it?  (Is it a 3rd-party repackaged version, or a real one from
> tomcat.apache.org?)
>
> > http://localhost:8080 brings up the tomcat page & one of the option is
> > "Administration".
>
> That looks like it comes from a defunct 5.0.x version, which has not been
> supported for quite some time now.  Install a current Tomcat from
> tomcat.apache.org and try again.
>
> > I would like to use this web interface and even give
> > some of the test webapp users ability to restart tomcat.
>
> That's not going to happen, at least not via internal manipulation of
> Tomcat.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


Re: tomcat administration

Posted by André Warnier <aw...@ice-sa.com>.
testwreq wreq wrote:
> 
> I would like to give some test application users ability to start & restart
> the tomcat server 

You may want to sit down, have a cup of coffee, and re-think harder 
about this statement, before someone really feels like answering it (again).


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


Re: tomcat administration

Posted by testwreq wreq <te...@gmail.com>.
I entered the following line <user name="ad" password="pw"
roles="admin,manager" /> in tomcat-users.xm file. I can login to the admin
http://localhost:8080/admin/ and application manager
http://localhost:8080/manager/html

I would like to give some test application users ability to start & restart
the tomcat server but not the entire admin / manager interface. Is it
possible to configure this?

I am told that when the application (jsp/servelet code) changes, tomcat has
to restart to clear the old cache. Is it true?

My tomcat version is 5.5.23

thanks, vm


On Fri, May 7, 2010 at 9:59 AM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: testwreq wreq [mailto:testwreq@gmail.com]
> > Subject: tomcat administration
> >
> > I have a new installation of tomcat on centos. My $CATALINA_HOME is
> > /usr/share/tomcat5 and tomcat is running.
>
> Care to tell us the *exact* version of Tomcat you installed?  And how you
> installed it?  (Is it a 3rd-party repackaged version, or a real one from
> tomcat.apache.org?)
>
> > http://localhost:8080 brings up the tomcat page & one of the option is
> > "Administration".
>
> That looks like it comes from a defunct 5.0.x version, which has not been
> supported for quite some time now.  Install a current Tomcat from
> tomcat.apache.org and try again.
>
> > I would like to use this web interface and even give
> > some of the test webapp users ability to restart tomcat.
>
> That's not going to happen, at least not via internal manipulation of
> Tomcat.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: tomcat administration

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: tomcat administration
> 
> I have a new installation of tomcat on centos. My $CATALINA_HOME is
> /usr/share/tomcat5 and tomcat is running.

Care to tell us the *exact* version of Tomcat you installed?  And how you installed it?  (Is it a 3rd-party repackaged version, or a real one from tomcat.apache.org?)

> http://localhost:8080 brings up the tomcat page & one of the option is
> "Administration".

That looks like it comes from a defunct 5.0.x version, which has not been supported for quite some time now.  Install a current Tomcat from tomcat.apache.org and try again.

> I would like to use this web interface and even give
> some of the test webapp users ability to restart tomcat.

That's not going to happen, at least not via internal manipulation of Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


RE: tomcat administration

Posted by "La Spina, Massimo" <Ma...@ca.com>.
There are special "admin" and "manager" roles.
Try to define and use one of these.

Massimo 


-----Original Message-----
From: testwreq wreq [mailto:testwreq@gmail.com] 
Sent: 7. května 2010 15:04
To: Tomcat Users List
Subject: tomcat administration

I have a new installation of tomcat on centos. My $CATALINA_HOME is
/usr/share/tomcat5 and tomcat is running.

http://localhost:8080 brings up the tomcat page & one of the option is
"Administration". I would like to use this web interface and even give some
of the test webapp users ability to restart tomcat.

According to the home page, users are defined in
$CATALINA_HOME/conf/tomcat-users.xml. Currently my file has the following
content
 more tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>

I tried logging to the administration web interface with tomcat/tomcat but
it did not work. Can anyone guide to configure this file? I am very new to
tomcat.

Thank you.

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