As part of Apache poi upgrade to 5.2.3, which requires newer version of commons-io(2.11.0), following ways were tried to fix the problem which failed. These solutions were tried on the jenkins job.
- Add commons-io <prefer-application-packages> to weblogic-application.xml & commons-io jar to the CLASSPATH.
- Add <prefer-web-inf-classes> to _weblogic-application.xml, _ but this is throwing validation errors.
- Add commons-io as a library reference in weblogic-application.xml
<library-ref>
<library-name>commons-io</library-name>
</library-ref>
4. Combine \*\*poi-ooxml-5.2.3.jar\*\* & \*\*commons-io-2.11.0.jar\*\* using ant zip utility to generate a resultant \*\*poi-ooxml- 5.2.3.jar\*\* having folder structure as below
org
|
apache
|
commons > io
poi > {class folder}
Note: on local 12.2.1.4 JDev the following fixes works fine(provided we add <package-name>org.apache.commons.io.*</package-name> under <prefer-application-packages> in weblogic-application.xml)
Please let me know if I could resolve this in any other way.