Rewrite rule not working with apache2, lucee tomcat

@andreas.

Hmm. I have multiple these type of page URLs so i have defined like this.

        <url-pattern>/*.cfm/*</url-pattern>
        <url-pattern>/*.cfml/*</url-pattern>

But it is giving error for every page:

HTTP Status 404 – Not Found

Type Status Report

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/9.0.35

Follwoing is also not working.

        <url-pattern>*.cfm/*</url-pattern>
        <url-pattern>*.cfml/*</url-pattern>