Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

JSP reloading on Tomcat 5.0.18 question

David Wall

2004-02-06

Replies:

Often when I upload a new JSP, tomcat 5.0.18 under RH Linux 9 with JDK1.4.2
doesn't seem to always see it. This is particularly true when doing
repeated uploads in short order (hack & test!).

I've configured tomcat's conf/web.xml with the following:

  <servlet>
    <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>development</param-name>
       <param-value>true</param-value>
    </init-param>
    <init-param>
       <param-name>reloading</param-name>
       <param-value>true</param-value>
    </init-param>
    <init-param>
       <param-name>checkInterval</param-name>
       <param-value>300</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
  </servlet>


My impression is that the 'development=true' setting should cause the JSP to
be checked every time for modifications, and only if development=false do
the reloading/checkInterval values take meaning. Is that not true? Should
I just turn 'development=false' and then set the 'checkInterval' to '0'?

Thanks,
David


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.