RE: Application redeployment on Tomcat startup only
The deployOnStartup attribute is not working for me. Here's the snippet of my server.xml file: If I copy a new war file and restart tomcat, I do not see any changes made in the directory that the application expands to. In my webapps directory, the war file is actually a symbolic link to the actual war file that resides elsewhere. Just in case the symbolic link was causing the problem I removed it, and copied the newer war file directly to the webapps directory. Then I restarted tomcat. I still did not see any changes made to my application directory. Am I missing something else? Thanks, Beth -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Sunday, November 19, 2000 6:19 PM To: Tomcat Users List Subject: Re: Application redeployment on Tomcat startup only Always a good idea to read the manual http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html also a good idea to read the comments carefully Autodeploy "If the Host autoDeploy attribute is "true", the Host will attempt to deploy and update web applications dynamically, as needed, for example if a new WAR is dropped into the appBase. For this to work, the Host needs to have background processing enabled which is the default configuration." so leave autodeploy=false "deployonStartup will be deployed on Tomcat startup only if the Host's deployOnStartup attribute is "true"." so leave deployOnStartup = true M- - Original Message - From: "Beth Hechanova" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, November 19, 2007 1:50 PM Subject: RE: Application redeployment on Tomcat startup only If I set the autoDeploy attribute to "true", then the application gets dynamically deployed - I do NOT want that behavior. So I've set that attribute to "false". But I would like the war file to be deployed when tomcat is restarted - that is the behavior I'm trying to get, and hoping to configure via configuration parameters. Maybe the only way to accomplish this is by deleting the directory at startup? Thanks, Beth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:38 AM To: Tomcat Users List Subject: Re: Application redeployment on Tomcat startup only handled by autodeploy attribute of Host element http://tomcat.apache.org/tomcat-5.5-doc/config/host.html M-- - Original Message - Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ To: Sent: Monday, November 19, 2007 12:12 PM Subject: Application redeployment on Tomcat startup only Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Application redeployment on Tomcat startup only
Always a good idea to read the manual http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html also a good idea to read the comments carefully Autodeploy "If the Host autoDeploy attribute is "true", the Host will attempt to deploy and update web applications dynamically, as needed, for example if a new WAR is dropped into the appBase. For this to work, the Host needs to have background processing enabled which is the default configuration." so leave autodeploy=false "deployonStartup will be deployed on Tomcat startup only if the Host's deployOnStartup attribute is "true"." so leave deployOnStartup = true M- - Original Message - From: "Beth Hechanova" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, November 19, 2007 1:50 PM Subject: RE: Application redeployment on Tomcat startup only If I set the autoDeploy attribute to "true", then the application gets dynamically deployed - I do NOT want that behavior. So I've set that attribute to "false". But I would like the war file to be deployed when tomcat is restarted - that is the behavior I'm trying to get, and hoping to configure via configuration parameters. Maybe the only way to accomplish this is by deleting the directory at startup? Thanks, Beth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:38 AM To: Tomcat Users List Subject: Re: Application redeployment on Tomcat startup only handled by autodeploy attribute of Host element http://tomcat.apache.org/tomcat-5.5-doc/config/host.html M-- - Original Message - Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ To: Sent: Monday, November 19, 2007 12:12 PM Subject: Application redeployment on Tomcat startup only Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Application redeployment on Tomcat startup only
If I set the autoDeploy attribute to "true", then the application gets dynamically deployed - I do NOT want that behavior. So I've set that attribute to "false". But I would like the war file to be deployed when tomcat is restarted - that is the behavior I'm trying to get, and hoping to configure via configuration parameters. Maybe the only way to accomplish this is by deleting the directory at startup? Thanks, Beth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:38 AM To: Tomcat Users List Subject: Re: Application redeployment on Tomcat startup only handled by autodeploy attribute of Host element http://tomcat.apache.org/tomcat-5.5-doc/config/host.html M-- - Original Message - Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ To: Sent: Monday, November 19, 2007 12:12 PM Subject: Application redeployment on Tomcat startup only Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Application redeployment on Tomcat startup only
I was going to go down that path if I couldn't find some combination of parameters to get the war file deployed on startup. It seems preferable (to me, anyway) to be able to accomplish this via the parameters rather than modifying the startup script, but if that is the only way, then so be it. Thanks, Beth Btw, I forgot to mention that I'm running Tomcat 6.0.14 on a Linux machine. -Original Message- From: david delbecq [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:20 AM To: Tomcat Users List Subject: Re: Application redeployment on Tomcat startup only If all you need to redeploy to occur is remove directories, just modify the statup script so it deleted the webapps directories. Beth Hechanova a écrit : > Hi, > > > > I am trying to configure Tomcat to only reploy my application war file > when Tomcat is started up. I have set the autoDeploy attribute in > server.xml to false - this prevents my application from deploying > dynamically, which is the behavior that I want. But then when I restart > Tomcat I would like my new war file to be deployed at that time, but > that is not happening (unless I delete the associated directory first). > > > > Are there any configuration parameters that will ensure the war file > gets deployed at startup, but NOT dynamically when the application is > running? > > > > Thanks, > > Beth > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Application redeployment on Tomcat startup only
handled by autodeploy attribute of Host element http://tomcat.apache.org/tomcat-5.5-doc/config/host.html M-- - Original Message - Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ To: Sent: Monday, November 19, 2007 12:12 PM Subject: Application redeployment on Tomcat startup only Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Application redeployment on Tomcat startup only
If all you need to redeploy to occur is remove directories, just modify the statup script so it deleted the webapps directories. Beth Hechanova a écrit : Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]