2016-06-09 100 views
0

我想在我的JBoss EAP 6.3.3中使用ear文件包含war文件来部署覆盖。 阅读本文后:https://access.redhat.com/solutions/383393,我做了这个CLI命令: deployment-overlay add -name = eum_overlay --server-groups = SG_IHMS_APM --content =/spb-bo-voyage-2.0.0.war/template/template.xhtml =/tmp/template.xhtml --deployments = spb-voyage-2.0.0.ear --redeploy-受影响但它不适合我!JBoss部署覆盖 - 嵌套部署

你有想法吗?

非常感谢

回答

0

在RedHat的支持帮助下,我找到了一个解决方案,我想与大家分享:

第一:耳内战争不应该是一个zip文件(有时战争文件被压缩),在这种情况下它不起作用!

现在你有一个内部的战争文件(解压缩模式)EAR文件,并且您希望使用JBoss部署叠加,使用这个命令:

部署叠加添加--name = Overlay_Name --content =/name_of_the_war_file。 war/folder_inside_war/file.xxx = path_to_file_that_will_overlay_the_file.xxx --deployments = name_of_the_ear_file.ear --server-groups = server_group_name --redeploy-affected

它对我来说工作得很好!

很好用!

ludo

+0

你是什么意思_内耳之战不应该是一个zip文件_?我的'app.ear'里面有一个'web-app.war'。这是否意味着我必须爆炸耳内的战争? – Mateusz