Reputation: 2161
I have a trivially simple embedded jetty instance with a mapped JspServlet. For performance reasons, Jetty is caching the compiled JSP files somewhere, but I can't find the cache location.
When in production, caching is great. In development, however, I need to remember to run "find . -exec touch {} \;" on my webapp, which is an incredible hack.
Anyway, does anyone know where the jetty cache is? Didn't seen anything in the documentation. I looked in /tmp, ~, my working directory, and my webapp directory; didn't find anything.
Upvotes: 0
Views: 1497
Reputation: 11
Jetty stores the generated file in the tmp directory This will normally be the directory specified by the system property java.io.tmpdir. On UNIX-like systems this will normally be /tmp
Upvotes: 1
Reputation: 49515
Jetty does not manage JSPs being run under Jetty.
The Jasper/Glassfish JSP implementation being used by Jetty is doing the management of the JSPs. Specifically the org.apache.jasper.servlet.JspServlet is doing all the work.
There are many configurables for the JspServlet, see the JSP How-To wiki for details on all of the configurables. Looks like the scratchDir
parameter is what you are looking for.
Upvotes: 0