Forum Stats

  • 3,825,929 Users
  • 2,260,581 Discussions
  • 7,896,738 Comments

Discussions

xmlbeans library conflict with poi jar file upgrade (WebLogic 12c)

User_IWXX5
User_IWXX5 Member Posts: 1 Green Ribbon

Hello Community,

We are upgrading POI jar files in our application (Struts & Hibernate on top of Weblogic 12 c ).

After upgrade (replace POI jar file to 4.x version) we are facing issue with weblogic server xmlbeans file (NoSuchMethorError). There is an error while our application try to read the excel file via batch job(Struts). Just like to understand is there a way we can restrict or force weblogic server to to use the upgraded jar file - xmlbeans instead of weblogic server level file ?


weblogic server xmlbeans library location :

OracleHome\wlserver\modules\com.bea.core.xml.xmlbeans


Application level upgraded files : List of jar files we are upgrading to below version from EOL versions.

xmlbeans-3.1.0.jar

poi-4.1.2.jar

poi-ooxml-4.1.2.jar

poi-ooxml-schemas-4.1.2.jar


Error :

java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setEntityExpansionLimit(I)Lorg/apache/xmlbeans/XmlOptions;

Answers