You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gary <gz...@gmail.com> on 2006/02/08 00:27:14 UTC

anyway to disable undeploy link in manager app?

Is there a way to configure tomcat or the web app so that the tomcat 
manager disables the
undeploy command for that application?
I'd like to prevent some of my apps from being undeployed from the web 
manager.
Thanks,
Gary

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


Re: anyway to disable undeploy link in manager app?

Posted by Gary <gz...@gmail.com>.
Mikolaj Rydzewski wrote:

> Amila Suriarachchi wrote:
>
>> you can do this by  changing the source code.  you have to change the
>> following constants in 
>> org.apache.catalina.manager.HTMLManagerServlet.java
>>
>>  private static final String STARTED_APPS_ROW_BUTTON_SECTION =
>>  private static final String STOPPED_APPS_ROW_BUTTON_SECTION =
>>
>> you can delete the undeploy link from there.
>>   
>
> And don't forget to disable code that does the undeploy. One could use 
> 'well known undeploy link' on your linkless manager webapp and... 
> undeploy ;-)
>
Thanks!  That'll make undeploy a little less convenient so I don't 
accidentally undeploy the wrong app.


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


Re: anyway to disable undeploy link in manager app?

Posted by Mikolaj Rydzewski <mi...@becomo.com>.
Amila Suriarachchi wrote:
> you can do this by  changing the source code.  you have to change the
> following constants in org.apache.catalina.manager.HTMLManagerServlet.java
>
>  private static final String STARTED_APPS_ROW_BUTTON_SECTION =
>  private static final String STOPPED_APPS_ROW_BUTTON_SECTION =
>
> you can delete the undeploy link from there.
>   
And don't forget to disable code that does the undeploy. One could use 
'well known undeploy link' on your linkless manager webapp and... 
undeploy ;-)

-- 
Mikolaj Rydzewski  <mi...@becomo.com>
Becomo S.A.
tel. (12) 2927104



Re: anyway to disable undeploy link in manager app?

Posted by Amila Suriarachchi <am...@gmail.com>.
>
> > Is there a way to configure tomcat or the web app so that the tomcat
> > manager disables the
> > undeploy command for that application?
> > I'd like to prevent some of my apps from being undeployed from the web
> > manager.


you can do this by  changing the source code.  you have to change the
following constants in org.apache.catalina.manager.HTMLManagerServlet.java

 private static final String STARTED_APPS_ROW_BUTTON_SECTION =
 private static final String STOPPED_APPS_ROW_BUTTON_SECTION =

you can delete the undeploy link from there.

thankx,
amila.

Re: anyway to disable undeploy link in manager app?

Posted by Glen Mazza <gr...@verizon.net>.
Gary wrote:

> Is there a way to configure tomcat or the web app so that the tomcat 
> manager disables the
> undeploy command for that application?
> I'd like to prevent some of my apps from being undeployed from the web 
> manager.

You know that you can limit the users who are authorized to access the 
manager application (by editing the conf/tomcat-users.xml file) -- might 
that be sufficient for your security needs?

Glen

> Thanks,
> Gary
> 
> ---------------------------------------------------------------------
> 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