4 Replies Latest reply on Mar 22, 2005 7:21 PM by mikeshapiro

    war servlet not refreshing

      This is a real simple newbie question.
      I'm running jboss 4.0.1 from the command line on windoze.

      I made a simple servlet, built a war file, and placed it in the deploy directory - it worked. Then I modified the servlet and redeployed the war file, but the change doesn't show. It old version of the war must be cached.

      How do I turn that cache off?

        • 1. Re: war servlet not refreshing
          anil.saldhana

          Does ur war file contain jars?

          On windows, Jar files get locked. So basically, when you hotdeploy, the old unjarred directory representing your war, in /server/default/tmp does not get cleaned up.

          Before you hotdeploy, remove the relevant war directory from /server/default/tmp.

          JBoss expands the war file under the tmp directory of ur config, for deploying the web components.

          • 2. Re: war servlet not refreshing

            Nope - no jars.

            The war contains three files one WEB-INF/web.xml,
            one WEB-INF/classes/eTest.java,
            one WEB-INF/classes/eTest.class,

            and that is all. eTest.java is a simple servlet.

            • 3. Re: war servlet not refreshing

              I answered my own question.

              It wasn't a simple servlet, it was a sevelet using an outside wrapper. When I turned it into a single, simple servlet - the refresh happened - no problem.

              Now I have to figure out why the wrapper stops the refresh.

              • 4. Re: war servlet not refreshing
                mikeshapiro

                I have a few questions because I am having a similar problem.

                1. Where you accessing this bean with a JSP page?
                2. What do you mean unwrapping it. Could you put your before and after source up
                it it is not to much trouble.

                thx,


                Mike Shapiro