Enable hot deploy for web pages in jboss-as-7.1.1.Final
Asked Answered
P

3

6

i am new to jboss, and i want to enable the hot deploy feature as in tomcat. right now when making any change to the xhtml page, i rebuild the application then redeploy the whole war, which is too much.

but in tomcat the war file was extracted, and then i replace the change xhtml file only and see the change immediately.

i was wondering how to accomplish same behavior for jboss-as-7.1.1.Final, and not in eclipse.

please advise how to do that, thanks.

Piles answered 4/10, 2012 at 8:17 Comment(2)
If your war file name is myapp.war. For deployment you may be creating a file myapp.war.dodeploy which will get changed to myapp.war.deployed after you deployed. You can just change this filename back to myapp.war.dodeploy to redeploy with your change.Disenchant
Does an exploded war file with ant synch task recognizes the changes?Intercross
P
6

You can do the same thing in JBoss as well. The file should be in /tmp/vfs/temp*/content* in the jboss server (standalone) directory. You can simply find the xhtml in that directory, and replace with new one. It should work! ..

It looks there is another way using jsp-configuration developement=true, check here

Pathfinder answered 8/10, 2012 at 16:46 Comment(0)
L
2

Add to your project this in the web.xml-> jboss detected and enable hot deploy.

 <servlet>
            <servlet-name>jsp</servlet-name>
            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
            <init-param>
                <param-name>development</param-name>
                <param-value>true</param-value>
            </init-param>
            <load-on-startup>3</load-on-startup>
        </servlet>

or u can use the new jboss as 6 its supposedly fixed. or u can follow this link instructions:

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

Lubricant answered 20/3, 2013 at 20:20 Comment(0)
F
0

For me, the easiest way of acomplishing it is using eclipse and selecting an option: deploy on server. To do that you need JBoss plugin in eclipse. It will do it automaticaly for you. So far no problems with it. The only issue is that if you change beans, you need to do the 'full publish'.

Fingered answered 4/10, 2012 at 8:32 Comment(1)
Where is that setting: "deploy on server"? I have JBoss plugin installed but I can't find this setting?Lowrie

© 2022 - 2024 — McMap. All rights reserved.