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

我的未来我决定 提交于 2019-12-14 03:45:22

问题


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.


回答1:


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




回答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




回答3:


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'.



来源:https://stackoverflow.com/questions/12723069/enable-hot-deploy-for-web-pages-in-jboss-as-7-1-1-final

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!