We shouldn't need to transform H2 for javax->jakarta. The only EE API it uses is Servlet and we don't support its use of servlet.
From its module.xml we can remove the javax.servlet.api dependency. We can remove javax.transaction.api as well as it doesn't actually use that; it uses javax.transaction.xa from the JDK (e.g. XAResource), which is a different thing.