Ubuntu 22.04 LTS
Java (JDK) 25.0.2
Tomcat 11.0.24
Lucee 7.0.4.34
Apache 2.4.52
Thanks to the Lucee team for a great upgrade to 7! I just completed installing it on my dev and production sites.
A while back (2025) I had a problem with CFEXECUTE and there is a thread here about that 2025 Thread on CFEXECUTE
Well it’s been working since then until the upgrade to version 7. No matter what I tried java kept throwing a permissions error.
So, using Gemini I found a solution. Not sure if this is a great solution, but it works.
The set up is as follows:
Lucee running a site in one place, using CFEXECUTE to call a bash shell script in /opt.
Here is my tomcat.service daemon script and I will highlight the change I needed to make.
[Unit]
Description=Apache Tomcat Web Application Container
After=network.target
[Service]
Type=forking
Environment=JAVA_HOME=/opt/java
Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
Environment=CATALINA_OPTS="-Xms128g -Xmx128g \
-XX:+UseG1GC \
-XX:MaxGCPauseMillis=200 \
-XX:InitiatingHeapOccupancyPercent=45 \
-XX:+UseNUMA \
-XX:+UseCompactObjectHeaders \
-Djava.awt.headless=true \
-Djdk.lang.Process.launchMechanism=FORK \
-Dtomcat.util.http.parser.HttpParser.requestTargetAllow='|{}'"
Environment=JAVA_OPTS="-Djava.awt.headless=true"
ExecStart="/opt/tomcat/bin/startup.sh"
ExecStop="/opt/tomcat/bin/shutdown.sh"
User=tomcat
Group=tomcat
UMask=0007
RestartSec=10
Restart=always
[Install]
WantedBy=multi-user.target
After adding
-Djdk.lang.Process.launchMechanism=FORK \
The CFCEXECUTE tag ran no problem. So, I will now turn the floor over to the amazing team here to explain if this was a good idea or not or what else to try. TIA!