2 Replies Latest reply on Feb 26, 2006 1:54 PM by joey watson

    How to make deploy faster.

    joey watson Newbie

      Hi

      Just Want to know do there have some ways can save my time when I develop Java project. Because if I did any modify to Java file or JSP file. I have to compile and deploy my project again. I know for Tomcat , Just set the class path to compile, and just compile Java file, don't need to compile JSP and make war file. can I do it for Jboss like this?

      Thanks.

      Joey

        • 1. Re: How to make deploy faster.
          wzzzrd Newbie

           

          "joey.watson" wrote:
          Hi

          Just Want to know do there have some ways can save my time when I develop Java project. Because if I did any modify to Java file or JSP file. I have to compile and deploy my project again. I know for Tomcat , Just set the class path to compile, and just compile Java file, don't need to compile JSP and make war file. can I do it for Jboss like this?

          Thanks.

          Joey


          Two solutions: a nice one and a dirty one.

          Nice one:

          In your jboss-service.xml (under server/yourservername/conf) find the definition for org.jboss.deployment.scanner.URLDeploymentScanner. Modify the URL-attribute:

          <attribute name="URLs">
           deploy/ , file:///pathtoyourwebapp
          </attribute>
          


          Your project must use the typical WAR-file-structure and you should compile to the WEB-INF/classes directory. When you changed a class, just touch your web.xml file.

          The dirty one:

          Deploy your app as an exploded archive and develop directly in the deploy/yourwebapp directory. This is not a good idea.

          Regards,
          Martin

          • 2. Re: How to make deploy faster.
            joey watson Newbie

            Hi Martin.

            Thanks you for answer. I try to use your first way, but it can not work. I setted the

            deploy/ ,file:/opt/java_plat/jboss-4.0.3SP1/server/default/deploy/testone/



            and copy everything in my webapp folder to there. of cause webapp folder is my depolyment folder. it follow WAR-file-structure. (btw. if I use war file copy to jboss's deploy folder. my program can work.)
            when I copy the webapp folder to there. jboss create lots of info to log nearly 6M, So I can not paste to here. and I went in the JBoss Management - Tomcat status page. no new one in "Application list", I missed somethings?

            thanks.

            Joey