2011/2/22 Dave Shevett <shev...@homeport.org>:
> So in all honesty, this is now going back to a question I was trying to
> solve to begin with - this may hijack the thread, but here goes anyway.
>
> The other vhosts have fixed deployments.  They have ROOT.xml's that
> deploy the .war file for each vhost:
>
> <Context path="/" docBase="/var/lib/tomcat5.5/webapps/congo-2.0.3.6.war">
>        <Parameter name="congo.home"
> value="/var/lib/congo/arisia.stonekeep.com/" override="false" />
>        <Parameter name="log4j.xml.url"
> value="file:/var/lib/congo/arisia.stonekeep.com/log4j.xml"
> override="false" />
> </Context>
>
> The Parameter is needed for the vhost to specify where to write
> configuration files.
>
> If jenkins is forcing the deploy via the app manager, how do I specify
> parameters for the vhost context path
> "http://congov2.stonekeep.com/congo/";  ?
>
> (I've also been informed the 'path="/"' here is illegal.  It was left
> over by the first person who built this setup - haven't tried removing
> it yet :)

If your goal is to keep "Parameters" in your context file:

Two steps:
1. Remove path and docBase from the file.
2. Rename the context file into "META-INF/context.xml" (exact name --
case of characters does matter!) and add it into your war file.  (That
is easy with Ant, or with `jar -uf`, I do not know about jenkins).
That file will be used by Tomcat when you deploy your application.
See "Context" page in the configuration reference for more details.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to