7

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?

6
  • What version of Apache Tomcat are you using? What other XML parsers are on your classpath? Commented Oct 9, 2018 at 15:16
  • 5
    This 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? Commented 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? Commented Oct 10, 2018 at 6:37
  • 1
    Apache 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 correctly Commented Oct 10, 2018 at 23:13
  • see also: developerblogging.blogspot.com/2013/04/… Commented Jan 11, 2019 at 10:58

2 Answers 2

6

I ended up add this to the eclipse.ini file: -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl

Sign up to request clarification or add additional context in comments.

1 Comment

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.
1

I was getting this abstract Method error due to Xerces Jar, it needed to be upgraded. i Excluded it from the dependency where it was a transitive dependency and added a latest version jar as a new dependency and it worked.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.