Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Webapp tmp cleanup on 12?

I assume Scott is asking on behalf of an inquiry on the shibboleth idp
users list.

I'm running the jetty distribution version 12.0.10. I cleaned up my tmp
directory:

# ls -l /var/lib/jetty/tmp
total 0

and started it with the following xml:

<Configure class="org.eclipse.jetty.ee9.webapp.WebAppContext">
        <Set name="war"><SystemProperty name="idp.home" default="/opt/shibboleth-idp" />/war/idp.war</Set>
        <Set name="contextPath"><SystemProperty name="idp.context.path" default="/idp" /></Set>
        <Set name="extractWAR">false</Set>
        <Set name="copyWebDir">false</Set>
        <Set name="copyWebInf">true</Set>
        <Set name="persistTempDirectory">false</Set>
        <Set name="overrideDescriptor">etc/idp-override-web.xml</Set>
</Configure>

and it created two subdirectories and a properties file:

# ls -l /var/lib/jetty/tmp
total 4
drwxr-xr-x 4 jetty jetty  31 Jul 15 18:05 jetty-127_0_0_1-80-idp_war-_idp-any-11759157477929194031
drwxr-xr-x 3 jetty jetty  17 Jul 15 18:05 jetty-127_0_0_1-80-ROOT-_-any-9269624856573884842
-rw------- 1 jetty jetty 896 Jul 15 18:05 start_9907702857047113920.properties

When I shut it down, the properties file goes away but the
subdirectories remain:

# ls -l /var/lib/jetty/tmp
total 0
drwxr-xr-x 4 jetty jetty 31 Jul 15 18:05 jetty-127_0_0_1-80-idp_war-_idp-any-11759157477929194031
drwxr-xr-x 3 jetty jetty 17 Jul 15 18:05 jetty-127_0_0_1-80-ROOT-_-any-9269624856573884842

and if I start it again, the properties file comes back along with two
new subdirectories:

# ls -l /var/lib/jetty/tmp
total 4
drwxr-xr-x 4 jetty jetty  31 Jul 15 18:05 jetty-127_0_0_1-80-idp_war-_idp-any-11759157477929194031
drwxr-xr-x 4 jetty jetty  31 Jul 15 18:06 jetty-127_0_0_1-80-idp_war-_idp-any-1330653356352487195
drwxr-xr-x 3 jetty jetty  17 Jul 15 18:06 jetty-127_0_0_1-80-ROOT-_-any-14340114990323831629
drwxr-xr-x 3 jetty jetty  17 Jul 15 18:05 jetty-127_0_0_1-80-ROOT-_-any-9269624856573884842
-rw------- 1 jetty jetty 896 Jul 15 18:06 start_2385017422068048968.properties

I'm currently running the idp using ee9:

/var/lib/jetty/start.d:
console-capture.ini  ee9-jsp.ini       http.ini             rewrite.ini ssl.ini
ee9-annotations.ini  ee9-jstl.ini      https.ini            server.ini ssl-reload.ini
ee9-deploy.ini       ee9-servlets.ini  logging-logback.ini session-cache-hash.ini


On Tue, Jul 16, 2024 at 09:43:39AM +1000, Jan Bartel via jetty-users wrote:
> Before I can answer this, I need to know
> 
> +  which ee environment you're referring to - is it ee8, ee9, or ee10?
> + are you explicitly calling setTempDirectory(File) with a directory which
> you have created?
> + is this referring to using the distro or the maven plugin or embedded?
> 
> Jan
> 
> On Tue, 16 Jul 2024 at 06:01, Cantor, Scott via jetty-users <
> jetty-users@xxxxxxxxxxx> wrote:
> 
> > It seems as though 12.x isn't honoring the persistTempDirectory setting in
> > the deployment descriptor and leaving behind the temp folders it creates
> > for each webapp.
> >
> > Is there a different setting for this in 12, or...?
> >
> > -- Scott
> >
> >
> >
> > _______________________________________________
> > jetty-users mailing list
> > jetty-users@xxxxxxxxxxx
> > To unsubscribe from this list, visit
> > https://www.eclipse.org/mailman/listinfo/jetty-users
> >
> 
> 
> -- 
> Jan Bartel <janb@xxxxxxxxxxx>
> www.webtide.com
> *Expert assistance from the creators of Jetty and CometD*

> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users



Back to the top