axis / webservices extension has a log4j1 dependency

Description

[java] [script] WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
[java] [script] lucee.runtime.exp.NativeException: Unable to resolve org.lucee.axis.extension [82](R 82.0): missing requirement [org.lucee.axis.extension [82](R 82.0)] osgi.wiring.bundle; (&(osgi.wiring.bundle=log4j)(bundle-version>=1.2.17)) Unresolved requirements: [[org.lucee.axis.extension [82](R 82.0)] osgi.wiring.bundle; (&(osgi.wiring.bundle=log4j)(bundle-version>=1.2.17))]Lucee was not able to download/load the following bundles [log4j:1.2.17;]
[java] [script] at lucee.runtime.osgi.OSGiUtil._start(OSGiUtil.java:1228)
)
[java] [script] at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:53)
[java] [script] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
[java] [script] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
[java] [script] Caused by: org.osgi.framework.BundleException: Unable to resolve org.lucee.axis.extension [82](R 82.0): missing requirement [org.lucee.axis.extension [82](R 82.0)] osgi.wiring.bundle; (&(osgi.wiring.bundle=log4j)(bundle-version>=1.2.17)) Unresolved requirements: [[org.lucee.axis.extension [82](R 82.0)] osgi.wiring.bundle; (&(osgi.wiring.bundle=log4j)(bundle-version>=1.2.17))]Lucee was not able to download/load the following bundles [log4j:1.2.17;]
[java] [script] ... 58 more
[java] [script] lucee.runtime.exp.NativeException: In the OSGi Bundle with the name [org.lucee.axis.extension] and the version [1.4.0.27] was no class with name [org.lucee.extension.axis.Axis1Handler] found. org.lucee.extension.axis.Axis1Handler
[java] [script] at lucee.commons.lang.ClassUtil.loadClassByBundle(ClassUtil.java:163)
[java] [script] at lucee.transformer.library.ClassDefinitionImpl.getClazz(ClassDefinitionImpl.java:110)
[java] [script] at lucee.runtime.config.XMLConfigAdmin.setClass(XMLConfigAdmin.java:6611)
[java] [script] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
[java] [script] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
[java] [script] Caused by: lucee.commons.lang.ClassException: In the OSGi Bundle with the name [org.lucee.axis.extension] and the version [1.4.0.27] was no class with name [org.lucee.extension.axis.Axis1Handler] found. org.lucee.extension.axis.Axis1Handler
[java] [script] ... 53 more
[java] [script] Caused by: java.lang.ClassNotFoundException: org.lucee.extension.axis.Axis1Handler
[java] [script] at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:2075)
[java] [script] at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978)
[java] [script] at lucee.commons.lang.ClassUtil.loadClassByBundle(ClassUtil.java:155)
[java] [script] ... 52 more
[java] [script] Caused by: org.osgi.framework.BundleException: Unable to resolve org.lucee.axis.extension [82](R 82.0): missing requirement [org.lucee.axis.extension [82](R 82.0)] osgi.wiring.bundle; (&(osgi.wiring.bundle=log4j)(bundle-version>=1.2.17)) Unresolved requirements: [[org.lucee.axis.extension [82](R 82.0)] osgi.wiring.bundle; (&(osgi.wiring.bundle=log4j)(bundle-version>=1.2.17))]
[java] [script] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
[java] [script] at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:2068)
[java] [script] ... 54 more

Environment

None

Activity

Show:

Michael Offner 21 February 2022 at 18:07

removed old log4j version from axis libs

Brad Wood 2 February 2022 at 21:12

In my tests, this does not work. The “Require-Bundle“ section in the manifest for the org.lucee.axis.extension still explicitly requires Log4j 1.2.17

log4j;bundle-version=1.2.17

Until this is removed, Log4j will still be downloaded when the extension’s bundles are loaded. You can see it here in the repo

https://github.com/lucee/extension-axis/blob/master/source/java/src/META-INF/MANIFEST.MF#L11

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Created 31 January 2022 at 15:10
Updated 21 February 2022 at 18:07
Resolved 21 February 2022 at 18:07

Flag notifications