'wildfly Failed to resolve expression

I'm trying to launch a Java Web Project with Eclipse and Wildfly. When I try to run the wildfly server I recieve the following issue:

Failed to resolve expression: entornoDT

But this variable was added in "Wildfly Launch configuration properties" > "Environmet"

Environmet variable

It looks like the project doesn't take the profile correctly. The error is because of this file: jboss-web.xml

In this line:

<context-root>kroneews${entornoDT}</context-root>



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source