1 2 Previous Next 15 Replies Latest reply on Jun 30, 2015 5:31 AM by morizios

    JBoss AS 7.1.1 Final JSP Auto Deploy

    cammette

      When I develop JSP on JBoss AS 7.0.2 Final,i add the config standalone.xml for automatically deploy to my web application each time I save a change to a JSP page:

      {code}

                 <configuration>

                      <jsp-configuration development="true"/>

                  </configuration>

      {code}

      but i update the JBoss As To 7.1.1.Final,it can not work right.

      should i do?

        • 1. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
          jaikiran

          What's not working right? What exactly does the configuration look like?

          • 2. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
            cammette

            i change the config standalone.xml (JBoss As To 7.1.1.Final )

            from:

                <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

                        <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

                        <virtual-server name="default-host" enable-welcome-root="true">

                            <alias name="localhost"/>

                            <alias name="example.com"/>

                        </virtual-server>

                  </subsystem>

            to:

                   <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

                        <configuration>

                            <jsp-configuration development="true"/>

                        </configuration>

                        <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

                        <virtual-server name="default-host" enable-welcome-root="true">

                            <alias name="localhost"/>

                            <alias name="example.com"/>

                        </virtual-server>

                    </subsystem>

            i would like to  save the change to my jsp each time and the jboss 7.0.1 automatically deploy the change to my war,but jboss 7.1.1 Final don't automatically deloy the change

            • 3. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
              ctomc

              Hi,

               

              i can confirm that it is a bug i am testing the fix right now.

               

              https://issues.jboss.org/browse/AS7-4187

               

              --

              tomaz

              1 of 1 people found this helpful
              • 4. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                tc7

                I'm keen to get this one fixed too is there a workaround (other than reverting to 7.1.0.Final)?

                • 5. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                  jaikiran

                  The fix is available in the nightly build https://community.jboss.org/thread/167590, if you want to use it

                  • 6. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                    darrellburgan

                    Does this issue mean that if we deploy a new version of our entire WAR file using jboss_cli.sh, that the JSP changes will not be picked up .... ? If so, this is a showstopper issue for us ....

                    • 7. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                      ctomc

                      In case of redeployment of whole war everything works as it should.

                      problem is(was) when you have exploded war and you change a jsp within it wouldn't pick the changes.

                      • 8. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                        darrellburgan

                        Okay thanks ... we can live with that until 7.1.2 is out. Is there a rough idea of when the 7.1.2 community version will be released (i.e. weeks away? months away?)

                        • 9. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                          nilindra

                          Hi,

                           

                          This 7.1.1 specific bug (https://issues.jboss.org/browse/AS7-4187) could be resolved with the following steps easily.

                           

                          1. Please make sure to add

                                      <configuration>

                                          <jsp-configuration development="true"/>

                                      </configuration>

                              in standalone.xml under <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">          

                           

                          2. Go to jboss-as-7.1.1.Final/modules/org/jboss/as/web/main

                             Place the jboss-as-web-7.1.1.Final-RECOMPILE.jar in there. You can download from http://www.datafilehost.com/download-2cb9ff04.html

                           

                          3. Open module.xml (jboss-as-7.1.1.Final/modules/org/jboss/as/web/main) and add the following line

                                  <!--resource-root path="jboss-as-web-7.1.1.Final.jar"/-->

                                  <resource-root path="jboss-as-web-7.1.1.Final-RECOMPILE.jar"/>

                           

                          4. You are done. Enjoy.

                          • 10. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                            ctomc

                            True!

                             

                            or by building your self 7.1.2/7.1.3 or by taking 7.2.0 nightly build

                             

                            --

                            tomaz

                            • 11. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                              darrellburgan

                              Thanks! We'll give it a try for development. I'm definitely not interested in deploying a nightly build to our production environment, but so far we have not had to hot-deploy any JSP changes. Still, it would be nice to have this capability if an emergency happened. We'll keep an eye out for the release of 7.2.

                              • 12. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                                nilindra

                                Yes Darrell. Same here. We use the above tweak in development environment to speed up developments.

                                 

                                During the production we will be using the Jboss 7.1.1 provided jboss-as-web-7.1.1.Final.jar. So it's always safe.

                                 

                                Hope this helps.

                                • 13. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                                  justdoit

                                  I've just tried it with 7.1.3final, and still have problems with jsp redeploy.

                                   

                                  I added this script in standalone.xml:

                                             <configuration>

                                                  <jsp-configuration development="true"/>

                                              </configuration>

                                  • 14. Re: JBoss AS 7.1.1 Final JSP Auto Deploy
                                    goncaloa

                                    @Nilindra

                                     

                                    That seemed to be a good workaround, but i still couldn't get it to work.

                                    The .xhtml page is correctly copied to the deploy folder, but the server just doesn't reload it.

                                     

                                    Any other ideas?

                                    1 2 Previous Next