RSS Feed
15
Oct.
2003

Tips 'n' Tricks: How to keep JSP compilation results with JBoss/Jetty

If you want to keep your JSP compilation results between server restarts you have to tell Jetty where to put the results. Otherwise Jetty will use a different directory on each restart. The simplest way is to add an init-parameter in webdefault.xml: [code] jsp org.apache.jasper.servlet.JspServlet scratchdir /tmp/jetty 0 [/code]

Comments

1. Eric
Be aware, this also seems to prevent JSPs from being recompiled after a web application is redeployed!

2. WoEyE
So if you modify a bean for example the caching of the compilation results might produce nasty ClassCastExceptions. You should now what you are doing when using the caching feature ...