Since the application is deployed in an .ear file now, for both Web Application Servers and WildFly, you must deploy this change in the .ear file (The ear file gets redeployed on every start, so changes are not persistent unless they are deployed in the .ear file).