3 Replies Latest reply on Jul 11, 2003 5:05 AM by abhsob

    Compiled JSP deleted when JBoss is restarted

    jawwadhussain

      Hi,

      I m using jboss-3.2.0_tomcat-4.1.24 bundle with JDK1.3.1_01 on Windows NT.

      Everything seems to work except that when I restart Boss all the compiled jsp classes are deleted and the compilation happens again after restart.

      I tried modify the "jboss-service.xml" in
      default\deploy\jbossweb-tomcat.sar\META-INF by adding the

      false

      and



      This doesn't seem to work.

      Can anyone help me with this.

      Hail JBoss!!

      Cheers :-)
      Jawwad.


        • 1. Re: Compiled JSP deleted when JBoss is restarted
          jawwadhussain

           

          "JawwadHussain" wrote:
          Hi,

          I managed to find a what was wrong with my settings after going through the source code.

          <Host name="localhost" workDir="/tmp/work/MainEngine/localhost">

          creates the work dir inside the tmp which will be delete by the when the server is shutdown.


          <Host name="localhost" unpackWARs="true" autoDeploy="true" workDir="${jboss.server.home.dir}/work/MainEngine/localhost">

          This creates the work dir outside the tmp directory.

          Cheers :-)
          Jawwad.


          • 2. Re: Compiled JSP deleted when JBoss is restarted
            abhsob

             

            "abhsob" wrote:
            "abhsob" wrote:
            I'm still having the same problem. The version I'm using is jboss-3.0.6_tomcat-4.1.18. I made the following entry in the

            tomcat41-service.xml:

            <Host name="localhost" unpackWARs="true" autoDeploy="true" workDir="C:/jboss-3.0.6_tomcat-4.1.18/work/MainEngine/localhost">
            <attribute name="DeleteWorkDirs">false</attribute>

            Is there anything else I'll have to do.

            -abhijeet


            • 3. Re: Compiled JSP deleted when JBoss is restarted
              abhsob

               

              "abhsob" wrote:
              It does work!! Only setting required is <attribute name="DeleteWorkDirs">false</attribute> in tomcat41-catalina.xml