jboss7.1.1 Final热部署,网上查到了如下解决方式:
在jboss7\standalone\configuration\standalone.xml文件中找到<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">做如下配置
```
1.<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
<configuration>
<jsp-configuration development="true"/>
</configuration>
<connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
```
以打开开发模式。但是加上该代码后,发现不起作用。后面有到jboss社区里翻了无数帖子,发现了Tomaz Cerar如下描述:
in 7.1.1 we have included much reworked web subsystem but unfortunaly I missed a bit that coused all jsp configuration to be ignored.
That bug was fixed soon after 7.1.1 was released and is now part of 7.1.2 and 7.2.x development branch.
原味连接https://community.jboss.org/message/723813由此可见这是一个本版本的bug,说是要在后期修复的。但是为中间升级风险很大,很多业务都是基于老版本的开发的,为了稳妥,我想肯定有人不用通过升级已经解决了此问题。
灯火阑珊处,发现了答案:
```
1. standalone.xml文件中增加
<configuration>
<jsp-configuration development="true"/>
</configuration>
```
```
2. 下载jboss-as-web-7.1.1.Final-RECOMPILE.jar,放置到jboss-as-7.1.1.Final/modules/org/jboss/as/web/main目录下
```
```
3. 修改步骤2同级目录下的module.xml文件
<resource-root path="jboss-as-web-7.1.1.Final.jar"/>
修改为
<resource-root path="jboss-as-web-7.1.1.Final-RECOMPILE.jar"/>
```
原文及下载详见:
http://andy-li-chn.iteye.com/blog/1966986
https://community.jboss.org/message/723945#723945#723945