Glad you've solved it and thanks for that update. That said, I had started writing up this before seeing your reply :-), so I'll go ahead and share it in case it may help you, Adobe, or others.
1) First, can you confirm that this problem is happening when you RUN cfcompile? (I'm assuming that becasue your error refers to "CommandLineInvoker".)
1a) If so, it may interest you to hear that I am NOT experiencing the same inability to run cfcompile on CF2021 update 21. (FWIW, I had updated from update 20. How about you? It might make a difference if you jumped from some much older update.)
1b) As for it failing for you (and your need to copy that jar), I wonder if perhaps you may have had an error during the update (tracked in the install log for the update, within cfusion/hf-updates), or in downloading package updates (tracked at the bottom of that log), or upon updating the packages (tracked during CF startup in the coldfusion-out.log).
1c) One other thing I would have proposed was that you see if stopping CF and deleting the cfusion/bin/felix-cache folder (then restarting CF, which would recreate it) might have fixed your probem. But I get it that your copy step was sufficient for you. I share this as much for other readers.
2) All that said, for you I also want to clarify that you referred to the June 2024 CF update (in your case, CF2021 update 14) that "phased out encryption". But what you're referring to here is the use of the cfcompile tool, which technically has nothing to do with that encryption change. Still, there's ANOTHER recent change related to cfcompile that you SHOULD know about.
(For readers not familiar with it, note that the cfcompile tool--found in cfusion/bin, as a bat file in Windows or an sh for Mac/Linux--was added in CF7, to allow one to manually compile CFML pages in such a way that the CFM file in your source directory is actually REPLACED with the bytecode CF would normally store and run from cfusion/wwwroot/WEB-INF/cfclasses. It's a form of obfuscation.)
3) Anyway, what may be important for you to hear is that with the April 2025 CF updates (in your case, CF2021 update 19), Adobe has CHANGED CF to default to NOT BE ABLE TO EXECUTE such cfcompile'd code. So while you have gotten your cfcompile to work, via the tweak you did, can you confirm if you can RUN that code?
3a) Note that the same Apr 2025 update also added a new JVM arg that would ALLOW YOU to let CF still run such cfcompile'd code. It's:
-Dcoldfusion.compiler.block.bytecode=false
3b) They also added then a new pathfilter.txt file (in cfusion/lib) that would allow you to name a folder of such files to allow, then in the May update that was changed to instead a pathfilter.json file (which also is used to allow scheduled tasks to "publish" their output.) Just beware that in the FOLLOWING update sadly CF resets those pathfilter files back to their empty default values. 😞
Anyway, I just wanted to offer this heads-up about cfcompile. (And on a related note, that April 2025 CF update also removed the old cfencode tool--a still older way to obfuscate code--and they removed also the ability of CF to RUN such cfencoded templates, with a JVM arg to revert that also.) BTW, the cfcompile tool does indeed still remain in CF, even after this update.
4) As such, again it's certainly interesting that you had to make that tweak of copying that jar. If you might have another server where you'll update CF, or if others might experience it, and if you/they confirm there are no update errors in the logs, and you/they confirm that the cfcompile tool still fails even with felix-cache deleted, it would seem helpful to report it as a bug, at tracker.adobe.com. (Adobe may not see you reporting the problem here, of if they do they tend not to fix things raised here unless a bug report is opened...and they do indeed fix things based on those tracker bug reports--though not EVERY bug reported, of course.)
If you do (or anyone else does) file a bug, please add the link here so that others finding this discussion can view it, add votes, get notified of changes as the bug may be fixed.
Hope all that additional info is helpful, to you or other readers.
... View more