You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will still need a writeable temp directory for your WebAppContext.
The servlet spec says
A temporary storage directory is required for each servlet context. Servlet containers
must provide a private temporary directory for each servlet context, and make it
available via the javax.servlet.context.tempdir context attribute.
This is an issue for the main jetty repository https://github.com/eclipse/jetty.project so feel free to reopen this there, but I think this could break a bunch of servlet features.
@lachlan-roberts I actually think this would be a good feature to have. The need for a writable temp directory is part of the standard, but we have lots of non-standard modes of deployment.
It may need a change to core jetty to be disable the need for a writable temp dir.
@omerlh In the mean time, you could deploy using a context.xml file that creates a ServletContextHandler instead of a WebAppContext.
Activity
gregw commentedon Mar 21, 2021
you should be able to run the script
/generate-jetty-start.shfrom your Dockerfileomerlh commentedon Mar 21, 2021
Nice, this indeed helped - but now I am facing new Jetty issue - maybe you can help with that also? I am far from Jetty expert :)
lachlan-roberts commentedon Mar 23, 2021
You will still need a writeable temp directory for your WebAppContext.
The servlet spec says
lachlan-roberts commentedon Jul 26, 2021
This is an issue for the main jetty repository https://github.com/eclipse/jetty.project so feel free to reopen this there, but I think this could break a bunch of servlet features.
gregw commentedon Jul 26, 2021
@lachlan-roberts I actually think this would be a good feature to have. The need for a writable temp directory is part of the standard, but we have lots of non-standard modes of deployment.
It may need a change to core jetty to be disable the need for a writable temp dir.
@omerlh In the mean time, you could deploy using a context.xml file that creates a ServletContextHandler instead of a WebAppContext.