This is likely because in
https://issues.redhat.com/browse/WFLY-14814 we (deliberately) removed the H2 module's dependency on the javax.servlet.api module.
To restore support for this I suggest you do the following:
1) cd $WILDFLY_HOME
2) mkdir -p modules/javax/servlet/api/h2
3) In that dir create a 'module.xml' file with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<module-alias xmlns="urn:jboss:module:1.9" name="javax.servlet.api:h2" target-name="javax.servlet.api"/>
Note that this won't work with WildFly Preview as H2 doesn't support the jakarta.* namespace.