I have recently migrated a site from a Lucee 4.5 to Lucee 5.3 server. (On windows, Tomcat 9, Java 11)
I am having trouble with using third party jar files, it was working fine, and all the same jar files are in the folder: \WEB-INF\lucee\lib
I’ll use the azure storage library for example, but this happens with a couple of different libraries.
When I load an object from a package such as:
<cfset LOCAL.CloudStorageAccount = CreateObject("java","com.microsoft.azure.storage.CloudStorageAccount" ).parse(variables.connectionString)>
I will get a java.lang.NoClassDefFoundError for one of the other classes in the package that this command would use. In this example it is:
Could not initialize class com.microsoft.azure.storage.core.Utility
Lucee is obviously finding the package, or CreateObject(“java”,“com.microsoft.azure.storage.CloudStorageAccount” ) wouldn’t work.
And I can look in the jar, and see that com.microsoft.azure.storage.core.Utility is inside the package.
I have tried both the original jar files from the old server, and the latest version of the package downloaded from maven, but the result is the same.
Can anyone think of what I might be doing wrong or what might be happening?