title: Runtime Exception - POI 5 and xmlbeans
body: <p>I am getting the below error when exporting excel using POI 5 with xmlbeans 4.</p>
  <p>Root cause of ServletException.</p>
  <pre><code>java.lang.ExceptionInInitializerError
  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.&lt;init&gt;(SchemaTypeSystemImpl.java:168)
  at org.apache.xmlbeans.metadata.system.sXMLSCHEMA.TypeSystemHolder.&lt;init&gt;(TypeSystemHolder.java:41)
  Truncated. see log file for complete stacktrace
  
  Caused By: org.apache.xmlbeans.XmlRuntimeException: 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:164)
  at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.&lt;init&gt;(SchemaTypeSystemImpl.java:168)
  at org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.&lt;init&gt;(TypeSystemHolder.java:41)
  at org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.&lt;clinit&gt;(TypeSystemHolder.java:44)
  at java.lang.Class.forName0(Native Method)
  Truncated. see log file for complete stacktrace
  
  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.&lt;init&gt;(SchemaTypeSystemImpl.java:168)
  at org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.&lt;init&gt;(TypeSystemHolder.java:41)
  at org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.&lt;clinit&gt;(TypeSystemHolder.java:44)
  at java.lang.Class.forName0(Native Method)
  Truncated. see log file for complete stacktrace
  </code></pre>
  <p>I have checked that my <code>xmlbeans</code> come from <code>xmlbeans-4.0.0.jar</code> and the <code>ooxml-schema</code> has been removed and replaced with <code>poi-ooxml-full-5.0.0.jar</code></p>
  <p>What may went wrong?</p>