On Thursday 02 September 2004 23:41, Remy Maucherat wrote:
> On Thu, 2 Sep 2004 23:27:59 +0200, Michael Schuerig
<[EMAIL PROTECTED]> wrote:
> > <target name="tomcat.install" depends="compile"
> > description="Install application to servlet container">
> > <deploy url="${manager.url}"
> > username="${manager.username}"
> > password="${manager.password}"
> > path="/${app.name}"
> > config="file://${etc}/context-local.xml" />
> > </target>
> >
> > It doesn't work, though, as one of war, localWar, or tag is
> > required. When I give a localWar, it is copied to
> > $CATALINE_HOME/webapps, but not really used (and not needed) as the
> > docBase entry in the context config file points somewhere else.
>
> It seems there's an annoying test left somewhere. Maybe in the Ant
> task itself, or it could also be a leftover check in the manager
> servlet.
Yes, there's a check in
jakarta-tomcat-5.5.0-src/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ant/DeployTask.java
lines 145-149
if ((war == null) && (localWar == null) && (tag == null)) {
throw new BuildException
("Must specify either 'war', 'localWar', or 'tag'
attribute");
}
The manager servlet itself works with a context config file and a
context path (not optional in this case!).
Michael
--
Michael Schuerig The more it stays the same,
mailto:[EMAIL PROTECTED] The less it changes!
http://www.schuerig.de/michael/ --Spinal Tap, The Majesty of Rock
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]