JBoss7.1.1 實現支援熱部署

來源:互聯網
上載者:User

公司一直適用jboss7.1.1,但是不支援熱部署,每次修改檔案都需要重啟服務,非常麻煩,偶然在網上看到瞭解決方案。拿來使用一下,果然能實現了熱部署。目前沒有發現問題。記錄下方法,防止以後忘記。

原文連結地址:http://andy-li-chn.iteye.com/blog/1966986

這個地址的包下載地址的包下載下來是個安裝檔案。我沒有安裝,然後重其他的文章中找到了一個直接下載包的地址。

文章連結:www.cnblogs.com/HD/p/4045877.html。

2篇文章的解決方案一樣的,也不知道誰抄誰的...

我自己也記錄一下吧。

燈火闌珊處,發現了答案:

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"/>
敘述的都很簡單,我就不翻譯了
原文詳見: https://community.jboss.org/message/723945#723945#723945
按照作者所講的方法操作了,問題奇蹟般解決了,當時由於jboss核心包被重新編譯過了,是否存在什麼隱患還有待深入測試。
另在附件中提供瞭解決方案提供者重新編譯過的包,我測試了是沒問題。
現與大家分享。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.