Apache POI 5.0.0 + XMLBEANS-536

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Apache POI 5.0.0 + XMLBEANS-536

Kevin Seymour

When we updated to POI 5.0 (using Maven artifacts poi, poi-ooxml) we get errors about not being able to find classes that were provided in xmlbeans 3.1.2 that were moved in xmlbeans 4.0.0 as part of XMLBEANS-536.

 

Caused By: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.sXMLCONFIG.TypeSystemHolder

        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1026)

        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:987)

        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:83)

        at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:608)

        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:540)

        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:493)

        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:470)

        at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:53)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:348)

        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)

        at org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<init>(TypeSystemHolder.java:41)

        at org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:348)

        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)

        at org.apache.xmlbeans.metadata.system.sXMLSCHEMA.TypeSystemHolder.<init>(TypeSystemHolder.java:41)

        at org.apache.xmlbeans.metadata.system.sXMLSCHEMA.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:348)

        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)

        at org.apache.xmlbeans.metadata.system.sXMLLANG.TypeSystemHolder.<init>(TypeSystemHolder.java:41)

        at org.apache.xmlbeans.metadata.system.sXMLLANG.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:348)

        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)

        at org.apache.xmlbeans.metadata.system.sXMLCONFIG.TypeSystemHolder.<init>(TypeSystemHolder.java:41)

        at org.apache.xmlbeans.metadata.system.sXMLCONFIG.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:348)

        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)

        at org.apache.poi.schemas.ooxml.system.ooxml.TypeSystemHolder.<init>(TypeSystemHolder.java:41)

        at org.apache.poi.schemas.ooxml.system.ooxml.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)

        at org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorkbook$Factory.getTypeLoader(CTWorkbook.java:544)

        at org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorkbook$Factory.newInstance(CTWorkbook.java:548)

        at org.apache.poi.xssf.usermodel.XSSFWorkbook.onWorkbookCreate(XSSFWorkbook.java:452)

        at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:255)

        at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:249)

        at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:237)

        at org.apache.poi.xssf.streaming.SXSSFWorkbook.<init>(SXSSFWorkbook.java:256)

        at org.apache.poi.xssf.streaming.DeferredSXSSFWorkbook.<init>(DeferredSXSSFWorkbook.java:55)

        at org.apache.poi.xssf.streaming.DeferredSXSSFWorkbook.<init>(DeferredSXSSFWorkbook.java:48)

 

I removed some configuration from my weblogic.xml what was required for POI 4 to tell WebLogic to prefer the xmlbeans that we bundle with our application for schemaorg_apache_xmlbeans.system.*, but now I just get a different error.

 

Caused By: java.lang.ClassCastException: org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl cannot be cast to org.apache.xmlbeans.SchemaTypeLoader

        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:162)

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)

        at org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<init>(TypeSystemHolder.java:41)

        at org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:348)

        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)

        at org.apache.xmlbeans.metadata.system.sXMLSCHEMA.TypeSystemHolder.<init>(TypeSystemHolder.java:41)

        at org.apache.xmlbeans.metadata.system.sXMLSCHEMA.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:348)

        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)

        at org.apache.xmlbeans.metadata.system.sXMLLANG.TypeSystemHolder.<init>(TypeSystemHolder.java:41)

        at org.apache.xmlbeans.metadata.system.sXMLLANG.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:348)

        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)

        at org.apache.xmlbeans.metadata.system.sXMLCONFIG.TypeSystemHolder.<init>(TypeSystemHolder.java:41)

        at org.apache.xmlbeans.metadata.system.sXMLCONFIG.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:348)

        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)

        at org.apache.poi.schemas.ooxml.system.ooxml.TypeSystemHolder.<init>(TypeSystemHolder.java:41)

        at org.apache.poi.schemas.ooxml.system.ooxml.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)

        at org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorkbook$Factory.getTypeLoader(CTWorkbook.java:544)

        at org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorkbook$Factory.newInstance(CTWorkbook.java:548)

        at org.apache.poi.xssf.usermodel.XSSFWorkbook.onWorkbookCreate(XSSFWorkbook.java:452)

        at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:255)

        at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:249)

        at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:237)

        at org.apache.poi.xssf.streaming.SXSSFWorkbook.<init>(SXSSFWorkbook.java:256)

        at org.apache.poi.xssf.streaming.DeferredSXSSFWorkbook.<init>(DeferredSXSSFWorkbook.java:55)

        at org.apache.poi.xssf.streaming.DeferredSXSSFWorkbook.<init>(DeferredSXSSFWorkbook.java:48)

 

Thanks,

 

Kevin Seymour | Architect, App Development

o: 603-354-6195

c: 603-505-0180

e: [hidden email]

www.ES3.com