On Fri, 3 Sep 2004 00:06:46 +0200, Michael Schuerig <[EMAIL PROTECTED]> wrote:
> 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");
> }
Thanks.
> The manager servlet itself works with a context config file and a
> context path (not optional in this case!).
I'm surprised the manager servlet works as is: I changed an apparently
bad check:
} else if (command.equals("/deploy")) {
if (war != null) {
deploy(writer, config, path, war, update);
} else {
deploy(writer, path, tag);
}
--
xxxxxxxxxxxxxxxxxxxxxxxxx
R�my Maucherat
Developer & Consultant
JBoss Group (Europe) S�RL
xxxxxxxxxxxxxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]