URL-Rewrite setup - conflicting information

I’m currently running Lucee with Apache and Tomcat, I just had to rebuild it due to EOL of the Amazon Linux version.
My .htaccess file works fine up until its processing urls with .cfm in. (it used to work fine before - but its been a long time since that server was setup and the packages have changed)
So I figured it might be a good time to use the url-rewrite functionallity in tomcat.
However looking for instructions and I’m getting conflicting methods.
Download the rewrite filter as mentioned int he docs (though not much info)

Or this:

<Valve className="org.apache.catalina.valves.rewrite.RewriteValve"/>

Neither which I have experience of
Many thanks

Don’t forget to tell us about your stack!

OS: Linux (4.18.0-513.18.1.el8_9.x86_64) 64bit
Java Version: 11.0.22 (Eclipse Adoptium) 64bit
Tomcat Version: Apache Tomcat/9.0.86
Lucee Version: 5.4.5.23

I’ve never used tomcat’s rewrite builtin, but Tuckey Rewrite.
It’s quite simple to install.

Is it the same for you?