Search the web
Sign In
New User? Sign Up
jetty-discuss · Jetty Discussion
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[jira] Created: (JETTY-67) Jetty instances share same tmp working d   Message List  
Reply | Forward Message #7500 of 8501 |
Re: [jetty-discuss] [jira] Created: (JETTY-67) Jetty instances share same tmp working directory

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>



_______________________________________________
jetty-discuss mailing list
jetty-discuss@...
https://lists.sourceforge.net/lists/listinfo/jetty-discuss



Fri Jun 2, 2006 9:01 am

jetty-discuss@...
Send Email Send Email

Forward
Message #7500 of 8501 |
Expand Messages Author Sort by Date

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 ...
Jan Bartel (JIRA)
jetty-discuss@...
Send Email
Jun 2, 2006
8:54 am

... I solved this like this: <Item> <New id="tentacles" class="org.mortbay.jetty.webapp.WebAppContext"> <Set name="contextPath">/</Set> <Set...
Richard Vowles
jetty-discuss@...
Send Email
Jun 2, 2006
9:01 am

[ http://jira.codehaus.org/browse/JETTY-67?page=all ] ... Resolution: Fixed Fixed by adding 8 random letters/digits to the end of the tmp dir name when it is...
Jan Bartel (JIRA)
jetty-discuss@...
Send Email
Jun 2, 2006
1:04 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help