<@U070SQMD1> Ok, I have now tested some of our ext...
# lucee
l
@zackster Ok, I have now tested some of our extensions that worked in 5 and they don’t work in 6 anymore. Here is the first regression. All of our extensions have included jars of course and our license helper classes. In our admin actions we had code like this:
Copy code
variables.licenseHelper = createObject( 'java', 'ortus.extension.pdf.util.LicenseHelper' );
		variables.trialExpiration = variables.licenseHelper.getTrialExpiration();
d
I’m sure you already tested this, but does the outcome change if you update createObject to specify the path to the JARs?
z
@lmajano i think i'll need to activation key to repo this problem?
I think your bundle might need to export packages? this is what the s3 extension bundle exports for example
Copy code
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.4
Created-By: 11.0.11+9-LTS-194 (Oracle Corporation)
Bundle-Version: 2.0.2.21
Built-Date: 2025-02-25 12:00:47
Bundle-SymbolicName: org.lucee.s3.extension
Export-Package: org.lucee.extension.resource.s3,<http://org.lucee.extension.re|org.lucee.extension.re>
 source.s3.function
Bundle-ManifestVersion: 2
Require-Bundle: org.lucee.aws-java-sdk-s3-all;bundle-version=1.12.758,
 org.apache.commons.commons-pool2;bundle-version=2.8.1,com.fasterxml.j
 ackson.core.jackson-annotations;bundle-version="[2.15.0,3)",com.faste
 rxml.jackson.core.jackson-core;bundle-version="[2.15.0,3)",com.faster
 xml.jackson.core.jackson-databind;bundle-version="[2.15.0,3)",com.fas
 terxml.jackson.dataformat.jackson-dataformat-cbor;bundle-version="[2.
 15.0,3)",bouncycastle.prov;bundle-version="[1.38.0,2)",bouncycastle.t
 sp;bundle-version="[1.38.0,2)",bouncycastle.mail;bundle-version="[1.3
 8.0,2)"
m
@zackster exports are only needed when a jar is loaded as OSGi bundle, but in that case it is not, it is a classic jar.
Copy code
lucee.runtime.exp.NativeException: cannot load class through its string name, because no definition for the class with the specified name [ortus.extension.pdf.util.LicenseHelper] could be found caused by (java.lang.ClassNotFoundException:ortus.extension.pdf.util.LicenseHelper;java.lang.ClassNotFoundException:ortus.extension.pdf.util.LicenseHelper not found by lucee.core [48];java.lang.ClassNotFoundException:ortus.extension.pdf.util.LicenseHelper;)
 at lucee.commons.lang.ClassUtil.loadClass(ClassUtil.java:369)
 at lucee.runtime.functions.other.JavaProxy.loadClassByPath(JavaProxy.java:182)
 at lucee.runtime.functions.other.JavaProxy.loadClass(JavaProxy.java:79)
 at lucee.runtime.functions.other.JavaProxy.call(JavaProxy.java:74)
 at lucee.runtime.functions.other.JavaProxy.call(JavaProxy.java:69)
 at lucee.runtime.functions.other.CreateObject.doJava(CreateObject.java:181)
 at lucee.runtime.functions.other.CreateObject.call(CreateObject.java:97)
 at lucee.runtime.functions.other.CreateObject.call(CreateObject.java:80)
i have created a ticket for this issue https://luceeserver.atlassian.net/browse/LDEV-5598