Incorrect MS SQL Server extension installed

I am trying to install extensions on demand, starting from the light docker image with the follwoing Dockerfile

# The development environment
FROM lucee/lucee:6.2.4.24-light-nginx-tomcat11.0-jre21-temurin-noble AS dev

# Start Tomcat, to install extensions and exit
ARG LUCEE_LOGGING_FORCE_APPENDER=console
ARG LUCEE_ENABLE_WARMUP=true
ARG LUCEE_ADMIN="CED6227E-0F49-6367-A68D21AACA6B07E8;name=Lucee Administrator;label=1.0.0.6"
ARG MS_SQL="99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6;name=Microsoft SQL Server (Vendor Microsoft);label=12.6.3.jre11"
ARG LUCEE_EXTENSIONS="${LUCEE_ADMIN},${MS_SQL}"
RUN /usr/local/tomcat/bin/catalina.sh run

# Environment variables embedded into the image
ENV LUCEE_EXTENSIONS="${LUCEE_EXTENSIONS}"
ENV LUCEE_LOGGING_FORCE_APPENDER=console
ENV LUCEE_ADMIN_ENABLED=true
ENV LUCEE_ADMIN_PASSWORD=password

# Engage
CMD ["/usr/local/tomcat/bin/catalina.sh", "run"]

It appears during container build Lucee dows not resolve the correct version of the MS SQL Server driver:

29-Jan-2026 10:34:29.400 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.15]
"INFO","main","01/29/2026","10:34:30","controller","No extension(s) found to add/install"
"INFO","main","01/29/2026","10:34:30","controller","Extensions to install defined in env variable or system property:CED6227E-0F49-6367-A68D21AACA6B07E8;name=Lucee Administrator;label=1.0.0.6,99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6;name=Microsoft SQL Server (Vendor Microsoft);label=12.6.3.jre11"
"INFO","main","01/29/2026","10:34:30","extension","installing the extension CED6227E-0F49-6367-A68D21AACA6B07E8;name=Lucee Administrator;label=1.0.0.6"
"INFO","main","01/29/2026","10:34:30","extension","Installing extension [CED6227E-0F49-6367-A68D21AACA6B07E8;name=Lucee Administrator;label=1.0.0.6] from remote extension provider"
"INFO","main","01/29/2026","10:34:30","main","Check for extension at [https://extension.lucee.org/rest/extension/provider/full/CED6227E-0F49-6367-A68D21AACA6B07E8?coreVersion=6.2.4.24]"
"INFO","main","01/29/2026","10:34:31","main","Downloaded extension [CED6227E-0F49-6367-A68D21AACA6B07E8;name=Lucee Administrator;label=1.0.0.6] to [/usr/local/tomcat/temp/CED6227E-0F49-6367-A68D21AACA6B07E8-null.lex]"
"INFO","main","01/29/2026","10:34:31","extension","copy [CED6227E-0F49-6367-A68D21AACA6B07E8:1.0.0.6] to [/opt/lucee/server/lucee-server/context/extensions/available/CED6227E-0F49-6367-A68D21AACA6B07E8-1.0.0.6.lex]"
"INFO","main","01/29/2026","10:34:31","extension","installing the extension 99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6;name=Microsoft SQL Server (Vendor Microsoft);label=12.6.3.jre11"
"INFO","main","01/29/2026","10:34:31","extension","Installing extension [99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6;name=Microsoft SQL Server (Vendor Microsoft);label=12.6.3.jre11] from remote extension provider"
"INFO","main","01/29/2026","10:34:31","main","Check for extension at [https://extension.lucee.org/rest/extension/provider/full/99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6?coreVersion=6.2.4.24]"
"INFO","main","01/29/2026","10:34:31","main","Downloaded extension [99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6;name=Microsoft SQL Server (Vendor Microsoft);label=12.6.3.jre11] to [/usr/local/tomcat/temp/99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6-null.lex]"
"INFO","main","01/29/2026","10:34:31","extension","copy [99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6:6.2.1-jre8] to [/opt/lucee/server/lucee-server/context/extensions/available/99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6-6.2.1-jre8.lex]"
"INFO","main","01/29/2026","10:34:31","extension","Deploy context [admin/dbdriver/MSSQL.cfc]"
"INFO","main","01/29/2026","10:34:31","extension","Update JDBC Driver [Microsoft SQL Server (Vendor Microsoft):class:com.microsoft.sqlserver.jdbc.SQLServerDriver;name:com.microsoft.sqlserver.mssql-jdbc;version:6.2.1;] from extension [Microsoft SQL Server (Vendor Microsoft):6.2.1-jre8]"

Since I exported LUCEE_EXTENSIONS to the environment as well, during container startup it checks the version of the extension and finds:

lucee-extension-hotfix  | "INFO","main","01/29/2026","10:34:35","controller","No extension(s) found to add/install"
lucee-extension-hotfix  | "INFO","main","01/29/2026","10:34:35","controller","Extensions to install defined in env variable or system property:CED6227E-0F49-6367-A68D21AACA6B07E8;name=Lucee Administrator;label=1.0.0.6,99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6;name=Microsoft SQL Server (Vendor Microsoft);label=12.6.3.jre11"
lucee-extension-hotfix  | "INFO","main","01/29/2026","10:34:35","controller","Successfully installed the following extensions: 99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6;name=Microsoft SQL Server (Vendor Microsoft);label=12.6.3.jre11, CED6227E-0F49-6367-A68D21AACA6B07E8;name=Lucee Administrator;label=1.0.0.6"
lucee-extension-hotfix  | "Severity","ThreadID","Date","Time","Application","Message"
lucee-extension-hotfix  | "ERROR","main","01/29/2026","10:34:35","configuration","Given version [6.2.1-jre8] is invalid, a valid version is following this pattern <major-number>.<minor-number>.<micro-number>[.<qualifier>];org.osgi.framework.BundleException: Given version [6.2.1-jre8] is invalid, a valid version is following this pattern <major-number>.<minor-number>.<micro-number>[.<qualifier>]
lucee-extension-hotfix  |       at lucee.runtime.osgi.OSGiUtil.toVersion(OSGiUtil.java:297)
lucee-extension-hotfix  |       at lucee.runtime.extension.RHExtension.removeDuplicates(RHExtension.java:1734)
lucee-extension-hotfix  |       at lucee.runtime.config.ConfigWebFactory._loadExtensionBundles(ConfigWebFactory.java:5087)
lucee-extension-hotfix  |       at lucee.runtime.config.ConfigWebFactory.load(ConfigWebFactory.java:596)
lucee-extension-hotfix  |       at lucee.runtime.config.ConfigServerFactory.load(ConfigServerFactory.java:260)
...

In the Lucee Administrator it tells me I currently have version 6.2.1-jre8 installed. Upgrade gives the error Given version [6.2.1-jre8] is invalid, a valid version is following this pattern ..[.], uninstall and then install works.

you have a typo?

should be ;version=12.6.3.jre11 not label,

doesn’t explain the odd behaviour tho? yeah the ext provider is returning the wrong version when no version is defined

https://luceeserver.atlassian.net/browse/LDEV-6089

The admin has the exact syntax

1 Like

Yes, that fixes it. Sorry for the noise.

mate, you found a problem and provided an excellent bug report

keep em coming!

bug fixed, latest version is now correctly returned