3 Replies Latest reply on Oct 19, 2004 10:35 AM by darranl

    Deployment to work directory

    krisvh

      Hi,

      I've made a jsp-page and I published it on the JBOSS 4.0.0 server.

      When I visit that page via IE I get my result as expected.

      If I change some code on that JSP and I publish, I still get my old page.

      I've noticed that the old-compiled JSP still exists in the work-directory of my default server. What can I do to force JBOSS to compile the new JSP-page without deleting that work-folder?

        • 1. Re: Deployment to work directory
          darranl

          Have you deployed your jsp page in as a war with a web.xml, if you have updating the web.xml should cause the new page to be used.

          • 2. Re: Deployment to work directory
            krisvh

            It's in a war

            my web.xml looks like this

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
            <web-app id="WebApp">
            <display-name>LVRProject</display-name>


            <servlet-name>index</servlet-name>
            <display-name>index</display-name>
            <jsp-file>/index.jsp</jsp-file>


            <servlet-name>database</servlet-name>
            <display-name>database</display-name>
            <jsp-file>/database.jsp</jsp-file>

            </web-app>

            What's wrong with it?

            • 3. Re: Deployment to work directory
              darranl

              Is it an exploded war? By updating it I mean make sure that the modified time movies forwards as JBoss uses this to indicate that the app needs redeploying.