ColdFusion (CFML) Lucee app server integration

#1
Intro: CFML is dynamic scrpting language based on Java, widely used - mostly in government infrastructure - while also popular, lesser so than PHP, in the private sector. Currently developed as a propertary App Server by the Adobe Corporation and also as open source (FOSS) by the Switzerland based Lucee foundation.

While I managed to match OLS with Lucee App Server trought Tomcat AJP 1.3 (sadly didn't manage to make UDS work) it would be great to have integrated, out-of-the-box support for Tomcat/Lucee in the OLS web admin console, mainly for virtualhost management from OLS directly. Currently each virtualhost has to be entered manually both in OLS and into the server.xml of Tomcat. There are of course CMS solutions like ColdBox that attemt to do this easily, but as far as I know they only offer integration with NGINX, plus it slows everything down tremendously. There exists a Tomcat Valve mod_cfml Java module for this exact purpose, but only for connecting to the Apache (httpd) web server, in order to easily deploy virtualhosts.

I am convinced the friendly experts at the Lucee foundation would gladly provide any help and documentation in order to make this happen, and the CFML community would welcome you and this innitiative with open arms (not to mention they would all migrate to LiteSpeed). This is an untapped market for LiteSpeed tech, as currently is too difficult and time consuming to manage the two in tandem, even though possible.
Bonus: LiteSpeed + Lucee is a match mad in heaven, would guaranteed out-compete PHP+NGINX in perfromance while being more lightweight, stable and dependable long term.
 
#2
Great news!
Managed to connect Lucee (CFM) to OLS via Tomcat AJP/1.3 (as Servlet Engine) and also trough UDS (as Web Server), with somewhat limited results.
For anyone interested, here are the server.xml connectors config settings for Tomcat (v9) - they can coexist:

Code:
<Connector protocol="AJP/1.3" port="8009" secretRequired="false" address="127.0.0.1" allowedRequestAttributesPattern=".*" scheme="http" URIEncoding="UTF-8" />

    <Connector protocol="org.apache.coyote.http11.Http11NioProtocol" unixDomainSocketPath="/tmp/lshttpd/cfm.sock" connectionTimeout="20000" maxThreads="100" useSendfile="true" URIEncoding="UTF-8" />
In the OLS server settings I tried all variants of connections. Tomcat AJP worked both as Web Server and as Servlet Engine (preffered), yet UDS (NioProtocol) works only as Web Server, all others fail to connect:

Screenshot 2024-12-10 at 12-37-01 LiteSpeed WebAdmin Console.png

In serving dynamic CFML pages generated by the Lucee CFM engine there is no percievable difference between AJP (servlet) and UDP (webserver), with the later one being sometimes a few ms slower. Further testing is needed for a higher load of concurrent dynamic requests, in order to establish a definitive conclusion.

Question is why can't UDS connection be established under Servlet Engine as well as the AJP connector, only under the form of a web server?
 
Top