From: Richard V. <ri...@ri...> - 2006-06-02 09:01:27
|
Jan Bartel (JIRA) wrote: > Jetty instances share same tmp working directory > ------------------------------------------------ > > Key: JETTY-67 > URL: http://jira.codehaus.org/browse/JETTY-67 > Project: Jetty > Type: Bug > > Reporter: Jan Bartel > Assigned to: Jan Bartel > > > I need to run a number of different jetty instances on the same Linux > machine. Using jetty-4.2.24 each instance creates its own 'work' > directory within /tmp using the 'Jetty_ip_port__webapp' format which is > great. > > However I need to use jetty-6 and can't get it to specify a unique work > directory for each instance. All of them share the same > /tmp/Jetty__webapp directory, which creates problems. > > I solved this like this: <Item> <New id="tentacles" class="org.mortbay.jetty.webapp.WebAppContext"> <Set name="contextPath">/</Set> <Set name="resourceBase">j:/sites/tentacles/web</Set> <Set name="displayName">tentacles</Set> <Set name="VirtualHosts"><Array type="java.lang.String"><Item>tentacles.local</Item></Array></Set> * <Set name="TempDirectory"><New class="java.io.File"><Arg>j:/sites/tentacles/web/WEB-INF/tmp</Arg></New></Set>* <Get name="SessionHandler"> <Set name="SessionManager"><New class="org.mortbay.jetty.servlet.HashSessionManager"/></Set> </Get> </New> </Item> <Item> <New id="usergroup" class="org.mortbay.jetty.webapp.WebAppContext"> <Set name="contextPath">/</Set> <Set name="resourceBase">j:/sites/usergroup/web</Set> <Set name="displayName">usergroup</Set> <Set name="VirtualHosts"><Array type="java.lang.String"><Item>usergroup.local</Item></Array></Set> *<Set name="TempDirectory"><New class="java.io.File"><Arg>j:/sites/usergroup/web/WEB-INF/tmp</Arg></New></Set>* <Get name="SessionHandler"> <Set name="SessionManager"><New class="org.mortbay.jetty.servlet.HashSessionManager"/></Set> </Get> </New> </Item> |