Due to this issue https://issues.jboss.org/browse/MODULES-372 , we need to pass the --add-modules=java.se option to various WildFly tools.