Missing dependency in osgi-bundle-mssql 8.4.1.jre8

When I tried to update the mssql driver from 7.4.1.jre8 to 8.4.1.jre8, I got the error:

Unable to resolve org.lucee.mssql [65](R 65.0): missing requirement [org.lucee.mssql [65](R 65.0)] osgi.wiring.package; (osgi.wiring.package=org.bouncycastle.jce.provider) Unresolved requirements: [[org.lucee.mssql [65](R 65.0)] osgi.wiring.package; (osgi.wiring.package=org.bouncycastle.jce.provider)]

As it turned out the error only occurs, when the pdf extension is uninstalled. It contains a dependency (Required Bundle) to bouncycastle.prov which is probably missing in the mssql bundle.

Reproduce

  • Install/Downgrade extension: Microsoft SQL Server 7.4.1.jre8
  • Uninstall: PDF Extension
  • Update extension: Microsoft SQL Server 8.4.1.jre8

Fix

  • Install: PDF Extension
  • Update extension: Microsoft SQL Server 8.4.1.jre8

Resources

osgi-bundle-pdfbox/pom.xml at master · lucee/osgi-bundle-pdfbox · GitHub
osgi-bundle-mssql/pom.xml at master · lucee/osgi-bundle-mssql · GitHub

Dependency docs

https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc/7.4.1.jre8
https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc/8.4.1.jre8

2 Likes

great bug report @walterseethaler !

I have updated the github actions to run with lucee light, which doesn’t bundle any extensions which exposes this dependency

I’ve been hacking away all morning, so now all the major Lucee extensions now run their Github Action Tests using Lucee light (no extensions) and only the minimal required extensions to run the test suite for that extension, which means this type of problem should be avoided in the future

Micha is working thru the extensions getting rid of these type of problems, whilst getting rid of the last traces of log4j1

Send beers!

7 Likes