开发者

How to upgrade JBoss Web in JBoss 5.x.x?

JBoss Web 2.1.3 in JBoss 5.1.0 has some fixes that I need on a production server running JBoss Web 2.1.2 in JBoss 5.0.1.

I don't want to upgrade to JBoss 5.1.0 yet on a production cluster. This is too risky.

So how do I upgr开发者_C百科ade JBoss Web only?

This is a sar. So I'd imagine all that is required is to switch in jbossweb.sar from JBoss 5.0.1.

Has anybody done this? Is this the correct approach? Are there any gotchas?

I can't find any useful documentation in relation to this on the web.

Maybe I should ask this question on serverfault - but there seems to be less activity there.


Swapping out jbossweb.sar might work, but it's pretty risky in itself. If you're averse to the risk in moving to 5.1, I'd be just as averse to the risk of swapping JBossWeb.

That said, if you have a good automated test suite, then you might be able to get enough confidence in the swap to take it to production.

This sort of situation is where I get a lot of value from the RedHat/JBoss EAP subscription - they will backport fixes to the version of JBoss that you're running, plus test and verify it for you.


I managed to reproduce the bug we had and verified that it did not occur with jboss 5.1.0. I upgraded to jboss 5.1.0 to sort this out. That plus lots of system testing and everyone was happy.


Based on https://docs.jboss.org/jbossweb/2.1.x/building.html and https://developer.jboss.org/thread/156024:

mkdir -p /tmp/jbossweb && cd /tmp/jbossweb

svn checkout https://anonsvn.jboss.org/repos/jbossweb/branches/2.1.x/

wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.tar.gz

tar -zxvf apache-ant-1.6.5-bin.tar.gz && cd 2.1.x

../apache-ant-1.6.5-bin/bin/ant download

../apache-ant-1.6.5-bin/bin/ant

cp output/jars/jbossweb.jar $JBOSS_5.1.0.GA_HOME/server/default/deploy/jbossweb.sar/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜