5 Replies Latest reply on Aug 16, 2007 5:45 PM by kadebendu

    Any configuration for caching of jsp's?

      Hi, all.

      Echoing the problem discussed in this topic: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=64995 caching of generated .java and .class files for .jsp's is unreliable. When changes to jsp pages are minimal, there can be no guarantee whether or not the changes will flush the old pages in the cache.

      Manually deleting the corresponding generated files in the /work directory is undesirable, and should not be necessary. Is there any configuration available for the "sensitivity" of the working directory? What is the mechanism that is used to determine whether a source page has changed or not?

      Thank you

        • 1. Re: Any configuration for caching of jsp's?
          jleech

          The issue is Tomcat bug #33453: http://issues.apache.org/bugzilla/show_bug.cgi?id=33453
          Also JBoss bug #JBAS-3081: http://jira.jboss.com/jira/browse/JBAS-3081?page=all

          The mechanism used is a comparison of the timestamp of the .class file with that of the new .jsp file. Yes, it really does compare two totally unrelated things.

          I have provided a patch for Tomcat, referenced in the first link above.

          It is "fixed" in the Tomcat bundled with JBoss 4.04 by Tomcat always deleting the files in the /work directory.

          • 2. Re: Any configuration for caching of jsp's?

            Thanks for the info, jleech

            • 3. Re: Any configuration for caching of jsp's?
              tsangcn

              I think it is better to implement a new parameter (such as the keepgenerated in jbossweb-tomcat55.sar/conf/web.xml) to control whether to keep or delete the cache instead of just deleting all of time. I am developing application with an slower machine. I am happy with the caching of JSP. But when testing with JBoss4.0.4, I am not happy with its deleting of JSP cache such that every time I start JBoss and test my application, I have to wait for the compilation of every JSP pages. Its a wasting of my time!!!!!!!!

              I STRONGLY reqeust for a parameter to control the caching of JSP.

              Thanks
              C. N.

              • 4. Re: Any configuration for caching of jsp's?
                jleech

                I agree. This is a Tomcat "feature", perhaps it is configurable there? It makes me not want to upgrade from JBoss4.0.2.

                "tsangcn" wrote:
                I think it is better to implement a new parameter (such as the keepgenerated in jbossweb-tomcat55.sar/conf/web.xml) to control whether to keep or delete the cache instead of just deleting all of time. I am developing application with an slower machine. I am happy with the caching of JSP. But when testing with JBoss4.0.4, I am not happy with its deleting of JSP cache such that every time I start JBoss and test my application, I have to wait for the compilation of every JSP pages. Its a wasting of my time!!!!!!!!

                I STRONGLY reqeust for a parameter to control the caching of JSP.

                Thanks
                C. N.


                • 5. Re: Any configuration for caching of jsp's?
                  kadebendu

                  We are running 4.0.5.GA and are still seeing this problem. According to the JIRA issue, it's supposed to be fixed in that version.

                  Just to make sure it wasn't a configuration issue, I downloaded a fresh copy of 4.0.5.GA and deployed a dummy WAR file with a single JSP. The problem is still happening ... the /work directory is not being deleted on hot deploys.

                  Is anyone else still having this problem?