Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NoClassDefFoundError: org/apache/xml/serialize/OutputFormat

Tags:

java

xml

apache

My application cannot find OutputFormat even though I have included the xercesImpl-2.8.1.jar in my .M2 folder.

I am able to view the class file.

Does anyone have any ideas why this would be? Am I using an incorrect version?

like image 516
TheCoder Avatar asked Oct 12 '25 03:10

TheCoder


1 Answers

The Tomcat config in my Intellij was not set up correctly. The exploded war file did not have the xercesImpl-2.8.1.jar. I added it to my 'endorsed' folder in Tomcat and it now works.

like image 157
TheCoder Avatar answered Oct 14 '25 17:10

TheCoder