2 Replies Latest reply on Nov 25, 2003 1:12 PM by Aaron Roller

    JSP Continually Recompiles

    Aaron Roller Newbie

      JBoss 3.2.2

      J2SDK 1.4.1_06

      I just deployed my application that I have been developing on windows XP pro to a Windows Server 2003 box. On the 2003 server, whenever I hit a web page it compiles slowly as so many have complained about.

      Even worse is that if I view that very same page that just compiled it compiles again every time!!! This is verified by watching the javac process spawn for every jsp page included in the jsp itself.

      I looked at the timestamps of the class files in the work/MainEngine/localhost/ directory and found that the generated classes are definitely being recompiled on every hit.

      Anyone have any ideas? Is there a clock issue or perhaps some directory permissions that may be causing the necessity for a recompile.

        • 1. Re: JSP Continually Recompiles
          Jon Barnett Master

          More likely to be a clock issue. Since the current system time is compared against the file timestamp, perhaps something has changed slightly in 2003. You usually only get this problem with between two systems - e.g. The deployment file is on another system.

          Have you tried perhaps a 1.4.2 JDK? Since Java relies heavily on the underlying OS it sounds like something is not quite meshing between 2003 and the JVM. Particularly if the same installation works fine on XP.

          • 2. Re: JSP Continually Recompiles
            Aaron Roller Newbie

            Same problem with J2SDK 1.4.2_02. Bummer.

            Then looking at the clock I see that the time is set correctly for the Month, Day and time, however, the year is 2002. Change it to 2003 and problem solved.

            So what time is javac looking at if not the system time? I would imagine the same problem would not have happened if I was deploying this a year ago so it must be some time that is provided external to my system.

            Either way I can move on!