https://bz.apache.org/bugzilla/show_bug.cgi?id=69304

Henry <hens...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #16 from Henry <hens...@hotmail.com> ---
(In reply to PJ Fanning from comment #14)
> Weblogic might rely on an older version of commons-io and this might
> conflict with the newer version of commons-io needed by POI.
> My understanding is that you can specify 'Parent Last' classloading when
> deploying so that your webapps use the jars that you choose in preference to
> the ones that Weblogic defaults to.
> 
> https://stackoverflow.com/questions/31583968/how-to-specify-order-of-jar-
> class-loading-in-weblogic

this is correct. I made the appropriate changes to the weblogic.xml file and it
worked properly.

Wblogic 12.2.1.4.0
===========================================================
      <prefer-application-packages>
            <package-name>org.slf4j.*</package-name>           
            <!-- para apache poi -->
            <package-name>org.apache.commons.collections4.*</package-name>
            <package-name>org.apache.commons.compress.*</package-name>
            <package-name>org.apache.poi.*</package-name>
            <package-name>org.apache.xmlbeans.*</package-name>
            <package-name>org.openxmlformats.*</package-name>
            <package-name>org.apache.commons.io.*</package-name>
            <package-name>org.apache.xmlbeans.*</package-name>
            <package-name>schemaorg_apache_xmlbeans.*</package-name>           
        </prefer-application-packages>


        <!-- para apache poi -->
        <prefer-application-resources>
           
<resource-name>schemaorg_apache_xmlbeans/system/sXMLCONFIG/TypeSystemHolder.class</resource-name>
           
<resource-name>schemaorg_apache_xmlbeans/system/sXMLLANG/TypeSystemHolder.class</resource-name>
           
<resource-name>schemaorg_apache_xmlbeans/system/sXMLSCHEMA/TypeSystemHolder.class</resource-name>
           
<resource-name>schemaorg_apache_xmlbeans/system/sXMLTOOLS/TypeSystemHolder.class</resource-name>
        </prefer-application-resources>


thanks...!!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to