Missing .cfs servlet mapping in Tomcat 11 configuration on official Lucee Docker images

Hi everyone,

While using the official Lucee Docker image with Tomcat 11 (tag: lucee/lucee:7.1.2.191-tomcat11.0-jre25-temurin-noble), I noticed that direct HTTP requests to .cfs (CFML Script) files fail to be processed by Lucee.

Although .cfs templates are enabled and supported out of the box in Lucee, the *.cfs URL pattern is missing from the CFMLServlet mapping in Tomcat’s /usr/local/tomcat/conf/web.xml.

To get .cfs files working properly, I had to manually update /usr/local/tomcat/conf/web.xml to include *.cfs (and /index.cfs/* for SES URLs):

<servlet-mapping>
    <servlet-name>CFMLServlet</servlet-name>
    <url-pattern>*.cfm</url-pattern>
    <url-pattern>*.cfml</url-pattern>
    <url-pattern>*.cfc</url-pattern>
    <url-pattern>*.cfs</url-pattern>
    <url-pattern>/index.cfc/*</url-pattern>
    <url-pattern>/index.cfm/*</url-pattern>
    <url-pattern>/index.cfml/*</url-pattern>
    <url-pattern>/index.cfs/*</url-pattern>
</servlet-mapping>

Hi Pedro,

Thanks for the clear report and the workaround. You’re right: the official Tomcat 11 images are missing the *.cfs and /index.cfs/* mappings in /usr/local/tomcat/conf/web.xml, so .cfs templates are not passed to Lucee.

I’ve filed this as LDEV-6970 and opened a fix in lucee-dockerfiles#111. That change adds the missing mappings on Tomcat 11, adds the /index.cfs/* SES mapping on the Tomcat 9 and 10 variants as well, and updates the -nginx frontend so it also proxies .cfs requests.

Until new images are published, the web.xml change you already made is the right workaround. This is planned to ship with the next image rebuild.