Reloading Struts webapp

I'm developing with Idea 4.5 a Struts web application running on Tomcat 5.
I would like to reload the application when the struts-config.xml file is modified.
Tomcat does not reload the app automatically, even with the context reloadable property set to "true".

When deployed on a standalone Tomcat instance, I can use the Tomcat manager for this purpose (using ant, or its html interface).
But when running my web app from Idea, the manager is not running, and I'm have to stop the process, and restart it, which is rather slow.

Any suggestion ?

4 comments
Comment actions Permalink

Undeploy and deploy without stopping the process. That will reload.


On 7/29/04 3:06 AM, in article
17223447.1091084814929.JavaMail.itn@is.intellij.net, "Denis Genard"
<denis.genard@cediti.be> wrote:

I'm developing with Idea 4.5 a Struts web application running on Tomcat 5.
I would like to reload the application when the struts-config.xml file is
modified.
Tomcat does not reload the app automatically, even with the context reloadable
property set to "true".

When deployed on a standalone Tomcat instance, I can use the Tomcat manager
for this purpose (using ant, or its html interface).
But when running my web app from Idea, the manager is not running, and I'm
have to stop the process, and restart it, which is rather slow.

Any suggestion ?


0
Comment actions Permalink

There is also a servlet floating around that you can add to your
context. Call the servlet and it will reload the struts config.

Robert S. Sfeir wrote:

>Undeploy and deploy without stopping the process. That will reload.
>
>
>On 7/29/04 3:06 AM, in article
>17223447.1091084814929.JavaMail.itn@is.intellij.net, "Denis Genard"
><denis.genard@cediti.be> wrote:
>

>
>>I'm developing with Idea 4.5 a Struts web application running on Tomcat 5.
>>I would like to reload the application when the struts-config.xml file is
>>modified.
>>Tomcat does not reload the app automatically, even with the context reloadable
>>property set to "true".
>>
>>When deployed on a standalone Tomcat instance, I can use the Tomcat manager
>>for this purpose (using ant, or its html interface).
>>But when running my web app from Idea, the manager is not running, and I'm
>>have to stop the process, and restart it, which is rather slow.
>>
>>Any suggestion ?
>>
>>
>>
>

>

0
Comment actions Permalink

download this extension to Tomcat's classloader. it will reload your context when changes are detected...i've used it to greatly speed my development on tomcat...

http://www.brainysoftware.com/books/tomcatStrutsModule.html

0
Comment actions Permalink

Excellent. The only problem is that it has the struts-config.xml
hard-coded. It should really check the web.xml for the presence of
other module config files. As it stands, this should work very well for
Struts 1.0, but does not support Struts 1.1 modules.

I would fix it, but I'm getting ready to give JSF a try. Looks like
some of the tedious stuff is done for you. Plus, it is the "standard".

Jon Crater wrote:

>download this extension to Tomcat's classloader. it will reload your context when changes are detected...i've used it to greatly speed my development on tomcat...
>
>http://www.brainysoftware.com/books/tomcatStrutsModule.html

>

0

Please sign in to leave a comment.