1 Reply Latest reply on Dec 29, 2003 4:13 PM by jonlee

    Configuring the tmp folder for precompiled jsp pages...

      Is there a way to change the temp folder used by jboss to store precompiled jsp pages?

      I'm running jboss 3.2.0 in production on gentoo linux and I don't want the precompiled jsps deleted by the tmpwatch cronjob. Normally this isn't a problem due to traffic but over the holidays we had some files deleted and jboss did not handle this well.

      My options are to change the cronjob and/or remove it or to change the location where jboss stores these files. I would prefer to place the files into the server directory temp folder but do not know how to go about doing that.

        • 1. Re: Configuring the tmp folder for precompiled jsp pages...
          jonlee

          Have you tried adding to JAVA_OPTS the following:
          -Djava.io.tmpdir=/tomcat

          This works for Jetty and should work for Tomcat but I haven't personally tried this for Tomcat.

          You'll need to create the directory with the correct permissions so that the JBoss process can write the temporary files to the directory.

          Hope that helps.