Only start manager at startup
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. Thanks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
Le 18/01/2013 15:18, Mark Thomas a écrit : 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org If I add an explicit context for the manager, I won't be able to start app from another context with the manager ? Alex - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
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 ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
Le 21/01/2013 15:17, David kerber a écrit : 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: - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Tomcat logs say setting property autoDeploy to true did not find matching property This is my server.conf Moreover, I have access to manager but it doesn't list my application in webapps directory - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
Le 21/01/2013 17:24, Mark Thomas a écrit : On 21/01/2013 15:48, Alexandre Rubert wrote: Tomcat logs say setting property autoDeploy to true did not find matching property As expected. Go and read the docs for the Context element again. This is my server.conf Moreover, I have access to manager but it doesn't list my application in webapps directory Also as expected since you have disabled all the mechanisms Tomcat uses to discover them. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Ok, so autoDeploy option doesn't exist for a context and If I set to false autoDeploy and deployOnStartup anything starts. So how can I start manager without starting all applications in my webapps directory ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
Le 21/01/2013 18:56, Mark Thomas a écrit : On 21/01/2013 17:03, Alexandre Rubert wrote: Ok, so autoDeploy option doesn't exist for a context and If I set to false autoDeploy and deployOnStartup anything starts. So how can I start manager without starting all applications in my webapps directory ? Again: autoDeploy="false" deployOnStartup="false" on the Host Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org It's what I did. But I start manager, any of my application are deployed and when I deployed manually, it automaticaly starts this application. I just want to see all applications which are in webapps directory but I want to start them one by one manualy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
Thanks a lot for all your answers. May be it will be a future option. Le 21 janv. 2013 21:16, "Mark Thomas" a écrit : > On 21/01/2013 18:15, Alexandre Rubert wrote: > > Le 21/01/2013 18:56, Mark Thomas a écrit : > >> On 21/01/2013 17:03, Alexandre Rubert wrote: > >> > >>> Ok, so autoDeploy option doesn't exist for a context and If I set to > >>> false autoDeploy and deployOnStartup anything starts. So how can I > start > >>> manager without starting all applications in my webapps directory ? > >> Again: > >> > >> autoDeploy="false" deployOnStartup="false" > >> > >> on the Host > >> > >> Mark > >> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > >> For additional commands, e-mail: users-h...@tomcat.apache.org > >> > > It's what I did. But I start manager, any of my application are deployed > > and when I deployed manually, it automaticaly starts this application. I > > just want to see all applications which are in webapps directory but I > > want to start them one by one manualy > > Not possible (without code modifications). > > Mark > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >