Use Linux
Well if you insist on using insecure clunky operating systems like Windows,
then what you need to do is to stop Jetty keeping any file references at
all open. So stopping file mapped buffer usage is a good step, but you
probably also need to set up a zero sized static content cache. setting
param maxCacheSize to 0 should help.Tell us how that goes.
cheers
On Sat, 26 Feb 2022 at 16:16, John English wrote:
> I have an ancient Jetty 8.1.4 plus Derby plus JDK 1.7 plus portable
> Notepad++ setup which I used to give to students about a decade ago as a
> self-contained distro in a zipfile. (Yes, I know I should update the
> Jetty version, not to mention the Derby, Java and Notepad++ versions,
> but please bear with me anyway.)
>
> I now want to give a new group of students the same setup, but my
> problem is that when a file is opened via the server, it's locked and
> can't be edited. I have the following in my jetty.xml:
>
>
> Default
>
> org.eclipse.jetty.servlet.DefaultServlet
>
>useFileMappedBuffer
>false
>
> 0
>
>
>
> jsp
> org.apache.jasper.servlet.JspServlet
>
>logVerbosityLevel
>DEBUG
>
>
>compilerSourceVM
>1.7
>
>
>compilerTargetVM
>1.7
>
>
>fork
>false
>
>
>useFileMappedBuffer
>false
>
>
>keepgenerated
>true
>
> 0
>
>
> I thought that setting "useFileMappedBuffer" to "false" was the way to
> avoid file locking, but after all these years I seem to be
> misremembering. What do I need to do to allow files to be edited after
> the server has accessed them?
>
> Thanks,
> --
> John English
>
> --
> This email has been checked for viruses by AVG.
> https://www.avg.com
>
> ___
> jetty-users mailing list
> jetty-users@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
>
--
Greg Wilkins CTO http://webtide.com
___
jetty-users mailing list
jetty-users@eclipse.org
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users