On Thu, 2 Sep 2004 23:27:59 +0200, Michael Schuerig <[EMAIL PROTECTED]> wrote:
> On Thursday 02 September 2004 22:43, Remy Maucherat wrote:
> > On Thu, 2 Sep 2004 21:56:36 +0200, Michael Schuerig
> <[EMAIL PROTECTED]> wrote:
> [Ant deploy task copies webapps]
>
> > Yes, this particular case will work like that now, in order to
> > simplify quite a bit the deployer (generating a trivial xml file to
> > reference the context would work, but might not contain what you
> > expect, which is why Tomcat copies your webappp). For now, I
> > recommend giving a xml file to Tomcat if you want to point to an
> > external context.
>
> Just to make sure I understand you correctly. You mean I create a
> context file like this
>
> <?xml version='1.0' encoding='utf-8'?>
> <Context path="/stundenplan"
> docBase="/home/michael/workspace/tomtest/build">
> </Context>
>
> copy it to $CATALINA_HOME/conf/Catalina/localhost/tomtest.xml and wait
> for Tomcat to pick it up?
That works. Don't use the path attribute, Tomcat will get it from the
xml file name.
> Or do you mean an Ant target like this?
>
> <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.
--
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]