On 1/21/2013 8:51 AM, Alexandre Rubert wrote:
Le 18/01/2013 17:19, David kerber a écrit :
On 1/18/2013 11:06 AM, Mark Thomas wrote:
On 18/01/2013 14:42, David kerber wrote:
On 1/18/2013 9:18 AM, Mark Thomas wrote:
On 18/01/2013 13:33, Alexandre Rubert wrote:
Hello,
I've more than 200app in my webapp directory with symbolic links
in some
images. If I activate allowLinking tomcat crash during startup
because
of out of memory. I'd like to disable automatic start for all
applications except manager. I tried by adding
deployOnStartup="false"
and autoDeploy="false" in my server.xml but with this options I can't
access to manager html.

Add an explicit Context for the manager in server.xml

Mark

So are you saying that this is one of the rare cases where
configuring a
context in server.xml is appropriate?

Yes. It is the only way to start a Context if autoDeploy and
deployOnStartup are disabled.

Thanks. I was wondering why it was left legal when it was so strongly
discouraged in most references and in this list.


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

I don't know how to write my new context. Do I have to write it into my
host section where I set deployOnstartUp to false and autoDeploy to
false ?Do you have example ?

Yes. Here is an example from what I used to use. Note that this is only part of the server.xml, and you need to change my settings to what you use:


   <Engine name="Catalina"
           defaultHost="localhost">

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <Host name="localhost"
            appBase="webapps"
            unpackWARs="true"
            autoDeploy="true"
            xmlValidation="false"
            xmlNamespaceAware="false">

         <Context path="/dir1/dir2"
            docBase="<full path to dir where .war is located>"
            debug="0"
            reloadable="true"
            autoDeploy="true"
            unpackWARs="true"
            crossContext="false"
            caseSensitive="false">
         </Context>

      </Host>

    </Engine>


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

Reply via email to