web.xml和jboss-web.xml中对SystemProperties的引用在JBoss5中有效,但在JBoss7中不适用 [英] references to SystemProperties in web.xml and jboss-web.xml works in JBoss5 but not in JBoss7

查看:163
本文介绍了web.xml和jboss-web.xml中对SystemProperties的引用在JBoss5中有效,但在JBoss7中不适用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JBoss 5.1中,我们曾经使用SystemProperties在web.xml和jboss-web.xml中暂存"值.在看起来像这样的web.xml中:

Under JBoss 5.1 we used to "stage" values in the web.xml and the jboss-web.xml by using SystemProperties. In the web.xml that looked like this:

<web-app [...]>

    [...]

    <auth-constraint>
        <role-name>${myRole}</role-name>
    </auth-constraint>

    [...]    

    <login-config>
        <auth-method>${myAuthMethod}</auth-method>
     </login-config>
    <security-role>
        <role-name>${myRole}</role-name>
    </security-role>
</web-app>

此外,我们对jboss-web.xml和安全域执行了相同的操作.不添加具体值非常关键,因为我们通过代码生成器生成的 WAR模块. JBoss 7不再替换这些值-根据规范这是正确的,但在我们的情况下非常不舒服.

Additionally we did the same thing for the jboss-web.xml and the security-domain. Not adding the concrete values is crutial because the WAR-modules we did that are generated by our code generator. JBoss 7 does not replace these values any more - which is correct according to the spec but in our case quite uncomfortable.

任何想法如何:

  • 在运行时进行某种替换吗?
  • 需要在运行时替换那些值吗?
  • ...?

推荐答案

请参见 https://issues .jboss.org/browse/AS7-3816 .

ejb-jar.xml的系统属性替换的修复程序将发布到JBoss AS 7.1.2.

The fix for system property substitution for ejb-jar.xml is going to JBoss AS 7.1.2.

您可以检查消息来源或联系受让人,以确保web.xml的内容也将得到修复.即使还没有,也应该说服Bartosz Baranowski对其进行修复.

You can check the source or contact the assignee to ensure that is also going to be also fixed for web.xml. Even if it's not yet, it should be possible to convince Bartosz Baranowski to fix it too.

更新

https://issues.jboss.org/browse/AS7-4479 -我们已经被听到了:)

https://issues.jboss.org/browse/AS7-4479 - we've been heard :)

这篇关于web.xml和jboss-web.xml中对SystemProperties的引用在JBoss5中有效,但在JBoss7中不适用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆