Namespace values in application.xml must be consistent with the descriptor version

Prior to Liberty 22.0.0.1, the Liberty server cannot load application modules where the application.xml deployment descriptor has a namespace value that does not match the defined version. Application modules at version 1.4 must use the http://java.sun.com/xml/ns/j2ee namespace. Application modules at version 5 or 6 must use the http://java.sun.com/xml/ns/javaee namespace. Application modules at version 7 or later must use the http://xmlns.jcp.org/xml/ns/javaee namespace.

This requirement for the Liberty server was removed in Liberty 22.0.0.1. Namespace values in the web.xml do not need to match the defined versions in Liberty 22.0.0.1 and later versions.

This rule has an automated fix to update the namespace value. Copy the custom configuration to your application build file to enable it.