CFConfig setting path for custom application jars

I’m using the CommandBox docker image to move a legacy coldfusion application into Lucee. My Application has a bunch of extra jars and I am running into an issue trying to set what I used to set as the coldfusion classPath for jars.

Using a lucee docker image, all I needed to do was map a volume holding the jars to /opt/lucee/server/lucee-server/context/lib which worked perfectly. I do not seem to be able to figure out how to get commandbox with cfconfig to do the same sort of thing.

I’d much prefer to use CommandBox than using Lucee directly as you all have sorted out the double wild card issue for me already (yay!).

Any insight on how to take some jars and have them put in the right spot for Lucee?

Use the app.libDirs setting in your server.json to point to the folder of jars. They will be added to the class loader which loads the servlet. Note, the libdirs are recursive so all jars in sub folders will be class loaded as well.

3 Likes