tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Fischer <mar...@fischer.name>
Subject Configuring different environment variables for different vhost context?
Date Thu, 03 Sep 2009 20:04:17 GMT
Hi,

I want to deploy multiple version of an application (Hudson [1] in my
case). Each running instance needs the environment variable HUDSON_HOME
point to a different location. However I only manage to either specify
either a HUDSON_HOME for all instances or none at all :-(

In tomcat55/server.xml I added

<Host name="hudson-test.dev" appBase="/var/lib/tomcat5.5/hudson-test"/>

in tomcat55/Catalina/hudson-test.dev/ROOT.xml I have

<Context docBase="/data/java/archives/hudson-1.322.war">
    <Environment name="HUDSON_HOME" type="java.lang.String"
value="/data/java/hudson-test"/>
</Context>

However it does not pick up HUDSON_HOME and I end up Hudson creating and
using /usr/share/tomcat5.5/.hudson/ instead.

I was only able to add global HUDSON_HOME variable which would be the
same for all Hudson deployments (either passed them in the shell when
starting tomcat or in the tomcat55/context.xml file).

I found http://forums.java.net/jive/thread.jspa?messageID=85039&tstart=0
which suggest to do exactly would I did, but it doesn't pick it up from
there.

I directed my question to Hudson but was suggested it may be a TC
configuration issue. Can someone point me into the right direction?

thanks,
- Markus

[1] https://hudson.dev.java.net/

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


Mime
View raw message