如何强制Jetty在每次修改时重新编译JSP

时间:2016-06-08 08:28:10

标签: jetty jetty-9 zimbra

我想将更改部署到Jetty,并能够在下一个请求中看到新结果,而无需使用所有网络应用重启Jetty。

在官方JSP config documentation中,它被描述为:

  

如果development = true,则对每个请求进行重新编译检查。

以下是来自我的网络应用程序的web.xml的JSP配置

<servlet id="jsp">
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
        <param-name>fork</param-name>
        <param-value>false</param-value>
    </init-param>
    <init-param>
        <param-name>xpoweredBy</param-name>
        <param-value>false</param-value>
    </init-param>
    <init-param>
        <param-name>trimSpaces</param-name>
        <param-value>true</param-value>
    </init-param>
    <init-param>
        <param-name>development</param-name>
        <param-value>true</param-value>
    </init-param>
    <init-param>
        <param-name>modificationTestInterval</param-name>
        <param-value>1</param-value>
    </init-param>
    <init-param>
        <param-name>checkInterval</param-name>
        <param-value>0</param-value>
    </init-param>
    <init-param>
        <param-name>reload-interval</param-name>
        <param-value>-1</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
    <init-param>
        <param-name>compilerSourceVM</param-name>
        <param-value>1.7</param-value>
    </init-param>
    <init-param>
        <param-name>compilerTargetVM</param-name>
        <param-value>1.7</param-value>
    </init-param>
</servlet>

不幸的是,这对我不起作用。那有什么不对?

Linux,jetty-distribution-9.1.5.v20140505(Zimbra 8.6.0_GA_1153)

0 个答案:

没有答案