Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

12.2.1.4 Weblogic not referencing to newer version of commons-io as it already has one under <ORACLE_HOME>/wlserver/modules

User_88JIMJul 31 2023

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.

  1. Add commons-io <prefer-application-packages> to weblogic-application.xml & commons-io jar to the CLASSPATH.
  2. Add <prefer-web-inf-classes> to _weblogic-application.xml, _ but this is throwing validation errors.
  3. 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.

Comments
Post Details
Added on Jul 31 2023
0 comments
2,132 views