Jboss7.1.1 Final 热部署

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  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值