poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1650485 - in /poi/site: publish/faq.html src/documentation/content/xdocs/faq.xml
Date Fri, 09 Jan 2015 10:19:03 GMT
Author: centic
Date: Fri Jan  9 10:19:03 2015
New Revision: 1650485

URL: http://svn.apache.org/r1650485
Log:
Add FAQ entry for NoClassDefFoundError: javax/xml/stream/XMLEventFactory.newFactory()

Modified:
    poi/site/publish/faq.html
    poi/site/src/documentation/content/xdocs/faq.xml

Modified: poi/site/publish/faq.html
URL: http://svn.apache.org/viewvc/poi/site/publish/faq.html?rev=1650485&r1=1650484&r2=1650485&view=diff
==============================================================================
--- poi/site/publish/faq.html (original)
+++ poi/site/publish/faq.html Fri Jan  9 10:19:03 2015
@@ -335,6 +335,11 @@ if (VERSION > 3) {
       An OOXML ("xml") file is giving me problems, but I can't share it. How can I investigate
the problem on my own?
     </a>
 </li>
+<li>
+<a name="faq-N1017E-menu"></a><a href="#faq-N1017E">
+      Why do I get a java.lang.NoClassDefFoundError: javax/xml/stream/XMLEventFactory.newFactory()
+    </a>
+</li>
 </ol>
 <a name="Answers"></a>
 <div class="h3">
@@ -787,6 +792,40 @@ System.out.println("Core POI came from "
          unable to then include the snippet of XML for the problem area, and
          reference the OOXML standard for what it should contain.</p>
     
+<a name="faq-N1017E"></a>
+<div class="h4">
+<h4>18. 
+      Why do I get a java.lang.NoClassDefFoundError: javax/xml/stream/XMLEventFactory.newFactory()
+    </h4>
+</div>
+      
+<p>This error indicates that the class XMLEventFactory does not provide 
+       functionality which POI is depending upon. There can be a number of 
+       different reasons for this:</p>
+	  
+<ul>
+		
+<li>Outdated xml-apis.jar, stax-apis.jar or xercesImpl.jar:<br>
+        These libraries were required with Java 5 and lower, but are not actually
+        required with spec-compliant Java 6 implementations, so try removing those
+        libraries from your classpath. If this is not possible, try upgrading to a
+        newer version of those jar files.
+        </li>
+		
+<li>Running IBM Java 6 (potentially as part of WebSphere Application Server):<br>
+        IBM Java 6 does not provide all the interfaces required by the XML standards, 
+        only IBM Java 7 seems to provide the correct interfaces, so try upgrading
+        your JDK.
+        </li>
+		
+<li>Sun/Oracle Java 6 with outdated patchlevel:<br>
+        Some of the interfaces were only included/fixed in some of the patchlevels for
+        Java 6. Try running with the latest available patchlevel or even better use 
+        Java 7/8 where this functionality should be available in all cases.
+        </li>
+	  
+</ul>
+    
 </div>
 </div>
 </div>

Modified: poi/site/src/documentation/content/xdocs/faq.xml
URL: http://svn.apache.org/viewvc/poi/site/src/documentation/content/xdocs/faq.xml?rev=1650485&r1=1650484&r2=1650485&view=diff
==============================================================================
--- poi/site/src/documentation/content/xdocs/faq.xml (original)
+++ poi/site/src/documentation/content/xdocs/faq.xml Fri Jan  9 10:19:03 2015
@@ -425,4 +425,32 @@ System.out.println("Core POI came from "
          reference the OOXML standard for what it should contain.</p>
     </answer>
   </faq>
+  <faq>
+    <question>
+      Why do I get a java.lang.NoClassDefFoundError: javax/xml/stream/XMLEventFactory.newFactory()
+    </question>
+    <answer>
+      <p>This error indicates that the class XMLEventFactory does not provide 
+       functionality which POI is depending upon. There can be a number of 
+       different reasons for this:</p>
+	  <ul>
+		<li>Outdated xml-apis.jar, stax-apis.jar or xercesImpl.jar:<br/>
+        These libraries were required with Java 5 and lower, but are not actually
+        required with spec-compliant Java 6 implementations, so try removing those
+        libraries from your classpath. If this is not possible, try upgrading to a
+        newer version of those jar files.
+        </li>
+		<li>Running IBM Java 6 (potentially as part of WebSphere Application Server):<br/>
+        IBM Java 6 does not provide all the interfaces required by the XML standards, 
+        only IBM Java 7 seems to provide the correct interfaces, so try upgrading
+        your JDK.
+        </li>
+		<li>Sun/Oracle Java 6 with outdated patchlevel:<br/>
+        Some of the interfaces were only included/fixed in some of the patchlevels for
+        Java 6. Try running with the latest available patchlevel or even better use 
+        Java 7/8 where this functionality should be available in all cases.
+        </li>
+	  </ul>
+    </answer>
+  </faq>
 </faqs>



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


Mime
View raw message