Thanks to all for your responses and advice, from this I have now
addressed the problem by using an alternative configuration. For the
record heres what I did:
- I ended up creating a completely different folder for my webapps. I
created subdirectories for each virtual host, rather than having all my
virtual host's web applications inside $CATALINA_HOME/webapps, and set
the appBase in server.xml's <Host> element to match this.
- I had my ant script generate a ROOT.war instead of the project name
and dumped this .war in my new appBase/domain/ directory.
- I set unpackWars and autoDeploy to true on each Host
- I created a META-INF/context.xml in my web app (as I needed to do some
config on the context)
Now whenever I drop a new web app in using the catalina ant deploy task
the changes are reflected. So I suppose the punchline is don't bung all
your webapps in the default folder and try to use <Context> elements,
but break them into seperate folders, and use ROOT.war if you want to
host off the default context ("/").
thanks everyone!
Daniel M Garland wrote:
Hello,
I have a virtual host configured on my Tomcat 5.5.20 cluster installation.
In my server.xml, I have
<Host name="mydomain.com" appBase="webapps/mywebapp" unpackWars="true"
autoDeploy="true">
And yet if I copy in a new war file (I'm using ant's deploy task) I
don't see any changes to my webapp. If I look at the individual server's
webapp via the manager application, I see the changes; but I don't see
any changes by looking at the virtual host address until I restart Tomcat.
Why?
Thanks in advance.
Dan Garland
[EMAIL PROTECTED]
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]