You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jonathan Eric Miller <je...@uchicago.edu> on 2004/11/10 23:17:17 UTC

Auto-deploy not working in Tomcat 5.5.4 when .war file has a META-INF/context.xml?

I have an application which has a META-INF/context.xml file. I'm attempting 
to have the file auto-redeploy itself everytime I copy an updated the 
updated .war file to the webapps directory. This worked fine in Tomcat 
5.0.25.

In Tomcat 5.5.4, it will deploy itself the first time through, but, when I 
update the file, it doesn't auto-redeploy itself. However, I found that if I 
remove the context.xml file from the META-INF directory. i.e. deploy the 
.war file without a context.xml file, it reloads itself correctly.

Has anyone else ran into this problem?

I'm using the following in my context.xml file. Note, this application 
doesn't technically need the file, but, I have other applications that do, 
so, I need to get it working.

<?xml version="1.0"
encoding="UTF-8"?>
<Context reloadable="true"/>

Jon


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Auto-deploy not working in Tomcat 5.5.4 when .war file has a META-INF/context.xml?

Posted by Remy Maucherat <re...@gmail.com>.
On Wed, 10 Nov 2004 16:17:17 -0600, Jonathan Eric Miller
<je...@uchicago.edu> wrote:
> <?xml version="1.0"
> encoding="UTF-8"?>
> <Context reloadable="true"/>

And what does "reloadable" do according to the documentation ? Is is
useful for what you want to do ?
No. Instead, it is exclusively used for monitoring classes.

I am almost certain the case where a war is updated works ok. If you
really think it doesn't work, please submit a test war.

-- 
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org