poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1763971 - /poi/site/publish/faq.html
Date Sun, 09 Oct 2016 13:05:27 GMT
Author: onealj
Date: Sun Oct  9 13:05:27 2016
New Revision: 1763971

URL: http://svn.apache.org/viewvc?rev=1763971&view=rev
Log:
republish site

Modified:
    poi/site/publish/faq.html

Modified: poi/site/publish/faq.html
URL: http://svn.apache.org/viewvc/poi/site/publish/faq.html?rev=1763971&r1=1763970&r2=1763971&view=diff
==============================================================================
--- poi/site/publish/faq.html (original)
+++ poi/site/publish/faq.html Sun Oct  9 13:05:27 2016
@@ -365,6 +365,11 @@ if (VERSION > 3) {
       write methods?
     </a>
 </li>
+<li>
+<a name="faq-N1029C-menu"></a><a href="#faq-N1029C">
+      Can POI be used with OSGI?
+    </a>
+</li>
 </ol>
 <a name="Answers"></a>
 <div class="h3">
@@ -1007,6 +1012,26 @@ and
        for the OOXML formats yet.
       </p>
     
+<a name="faq-N1029C"></a>
+<div class="h4">
+<h4>22. 
+      Can POI be used with OSGI?
+    </h4>
+</div>
+    	
+<p>Starting with POI 3.16 there's a workaround for OSGIs context classloader handling,
+    	 i.e. it replaces the threads current context classloader with an implementation of
+    	 limited class view. This will lead to IllegalStateExceptions, as xmlbeans can't find
+    	 the xml schema definitions in this reduced view. The workaround is to initialize
+    	 the classloader delegate of <em>POIXMLTypeLoader</em> , which defaults
to the current
+    	 thread context classloader. The initialization should take place before any other
+    	 OOXML related calls. The class in the example could be any class, which is
+    	 part of the poi-ooxml-schema or ooxml-schema:<br>
+    	 
+<em> POIXMLTypeLoader.setClassLoader(CTTable.class.getClassLoader());</em>
+    	
+</p>
+	
 </div>
 </div>
 </div>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message