2 Replies Latest reply on Feb 9, 2014 10:50 AM by Harald Wellmann

    Property Substitution in web.xml

    Harald Wellmann Novice

      Does WildFly support property substitution in web.xml?

       

      With this snippet in web.xml

       

      <context-param>
          <param-name>javax.faces.PROJECT_STAGE</param-name>
          <param-value>${jsf.project.stage:Production}</param-value>
      </context-param>

       

       

      and setting the corresponding system property when launching WildFly:

       

          -Djsf.project.stage=Development

       

      all I'm getting is the following log message

       

      2014-02-09 10:25:02,721 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-8) Unable to discern ProjectStage for value ${jsf.project.stage:Production}.

       

      Am I missing anything, or is this feature not (yet) working in 8.0.0.CR1?

       

      Best regards,

      Harald