I have an application where I create excel files with apache POI 3.17
I am having this error message from apache POI logs when I run the application in Tomcat. What does this mean and how can I resolve it?
-
What version of Apache Tomcat are you using? What other XML parsers are on your classpath?Gagravarr– Gagravarr2018-10-09 15:16:51 +00:00Commented Oct 9, 2018 at 15:16
-
5This is likely caused by having an ancient XML parser on your classpath - eg eclipse.org/forums/index.php/t/781657 - can you upgrade to xerces 2.12.0?PJ Fanning– PJ Fanning2018-10-09 19:12:18 +00:00Commented Oct 9, 2018 at 19:12
-
Thank you very much everyone! You are right, the problem was an XML parser (xalan) in my case, Tho, doesn't apache poi have its own xml parser?sticky_elbows– sticky_elbows2018-10-10 06:37:58 +00:00Commented Oct 10, 2018 at 6:37
-
1Apache POI like most Java projects uses docs.oracle.com/javase/8/docs/technotes/guides/xml/jaxp/… - basically, it is up to the user to ensure they have their JVM set up correctlyPJ Fanning– PJ Fanning2018-10-10 23:13:47 +00:00Commented Oct 10, 2018 at 23:13
-
see also: developerblogging.blogspot.com/2013/04/…Stephan– Stephan2019-01-11 10:58:29 +00:00Commented Jan 11, 2019 at 10:58
|
Show 1 more comment
2 Answers
I ended up add this to the eclipse.ini file: -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
1 Comment
DoesEatOats
All seems to be working now after reading this:developerblogging.blogspot.com/2013/04/…. If you will scroll down to the bottom. So I added the above line to my eclipse.ini file. Restarted and was finally able to run tomcat.