You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jerry Malcolm <2n...@gmail.com> on 2011/12/05 00:20:35 UTC

Disabling Apps in host root

When I start tomcat, it tries to start an app for every folder in the host
root directory.  Some folders are really apps (with WEB-INF), and some are
folders that are not apps at all.   It starts up the apps in folders with
WEB-INF, but also shows other folders as apps in the manager.  I would like
to control the apps I want to start up and prevent TC from starting
everything it can find.  I figured having a context defined might control
it.  But it doesn't seem to care if there is a context or not.

Is there a way to control the apps that start up (short of removing the
folders from the root)?

Thx.

Jerry

Re: Disabling Apps in host root

Posted by Pid <pi...@pidster.com>.
On 04/12/2011 23:52, Caldarale, Charles R wrote:
>> From: Jerry Malcolm [mailto:2ndgenfilms@gmail.com] 
>> Subject: Disabling Apps in host root
> 
>> When I start tomcat
> 
> What exact version?  We're not mind-readers, and capabilities vary considerably depending on what level you're on.
> 
>> it tries to start an app for every folder in the 
>> host root directory.
> 
> What do you mean by "host root directory"?  Do you really mean the <Host> appBase directory?  Be precise.
> 
>> Some folders are really apps (with WEB-INF), and 
>> some are folders that are not apps at all.
> 
> Then why are the non-apps folders there?

+1  If you don't want them published, don't put them where they can be
published.


p

>> But it doesn't seem to care if there is a context or not.
> 
> Correct; nothing in the spec requires the existence of a <Context> element or even WEB-INF/web.xml.
> 
>> Is there a way to control the apps that start up
> 
> Look at the deployIgnore attribute of the <Host> element:
> 
> http://tomcat.apache.org/tomcat-7.0-doc/config/host.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
> 


-- 

[key:62590808]


RE: Disabling Apps in host root

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Jerry Malcolm [mailto:2ndgenfilms@gmail.com] 
> Subject: Disabling Apps in host root

> When I start tomcat

What exact version?  We're not mind-readers, and capabilities vary considerably depending on what level you're on.

> it tries to start an app for every folder in the 
> host root directory.

What do you mean by "host root directory"?  Do you really mean the <Host> appBase directory?  Be precise.

> Some folders are really apps (with WEB-INF), and 
> some are folders that are not apps at all.

Then why are the non-apps folders there?

> But it doesn't seem to care if there is a context or not.

Correct; nothing in the spec requires the existence of a <Context> element or even WEB-INF/web.xml.

> Is there a way to control the apps that start up

Look at the deployIgnore attribute of the <Host> element:

http://tomcat.apache.org/tomcat-7.0-doc/config/host.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