Replace ServletRequest.getRealPath(String) with getServletContext().getRealPath(String)

MSAL

Replace the removed getRealPath(String) on jakarta.servlet.ServletRequest and jakarta.servlet.ServletRequestWrapper with getServletContext().getRealPath(String).

org.openrewrite.java.migrate.jakarta.UpdateGetRealPath
mod run . --recipe=org.openrewrite.java.migrate.jakarta.UpdateGetRealPath

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.