Hey all! I’ve been working to get Lucee working with Tomcat 10. If the Lucee team was going to take this on, what would be the recommended approach? If anyone else has any ideas, feel free to put them out there. Or, if anyone has this working in any context, I would love hear about it.
There are two tools that I know of to assist (this forum didn’t like my links for some reason).
Tomcat has a tool that will migrate wars by dropping your javaee app into webapps-javaee folder. It does run the migration (including on all nested jars) and the migrated war gets expanded in the webapps directory. This unfortunately isn’t enough. It throws the exact same servlet exceptions when using the tool or not. Maybe there is some dynamic class loading it isn’t accounting for.
Eclipse makes a tool called Eclipse Transformer that does roughly the same as the tool above, but handles many more cases (source code updates by directory, jars, wars, osgi bundle configs etc), but while the docs appear fairly complete, using the tool isn’t as straightforward. If anyone plays with it, II had my best luck building it from source and then using mvn exec to run the transformer class. I dropped the war or directory I was testing with directly into the tools folder. The migrated war had a bunch of issues. The source transformer was way more accurate. But its not enough. If anyone wants instructions for using this tool feel free to ask. The instructions on Github didn’t work at all out of box.
I also manually made the updates to Lucee but there are too many bundles with required libraries that I can’t access to change. The httpcomponents-httpclient for example requires a version of logging that requires javax. I guess I could setup a maven repo with updated versions or something.
I’ll happily provide a updated Lucee 6 fork with Jakarta updates if I can get it building properly. Any insights appreciated
I’ve looked at all these tools as well but found the same issue-- they are great for a simple app with a simple lib folder, but Lucee loads so many different jars from different places (sometimes downloaded on the fly) it’s nearly impossible to do any sort of direct bytecode transformation on it. Furthermore, when Lucee does cut over, it will need to basically create new versions of all its extensions and bundles which reference that namespace which will cause another issue in that Lucee doesn’t have a good sem ver support for the Lucee core to declare what versions of an extension it can or cannot use.
I can’t really speak for the Lucee team, but I would think putting your fork out there would be helpful as a starting point. Moving to the Jakarta namespace is not on the active roadmap for Lucee or Adobe yet, but it’s already causing me quite a lot of issues now that I’m stuck on old versions of Undertow which no longer receives any sort of updates for new features
It probably won’t help you much, but its easier to get Jakarta working on Lucee 4.5. Obviously a step back when 6 is in Beta - but worth it depending on what you’re trying to do. The steps were simple and I can publish my repo if anyone is interested.
I cloned the eclipse transformer.
I cloned the 4.5 git repo into a folder in transformer.