Issue
I can see java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
errors in the logs and some plugin or functionality is not working on Jenkins.
Environment
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Managed controller
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Operations Center
-
CloudBees CI (CloudBees Core) on traditional platforms - Client controller
-
CloudBees CI (CloudBees Core) on traditional platforms - Operations Center
-
CloudBees Jenkins Enterprise
-
CloudBees Jenkins Enterprise - Managed controller
-
CloudBees Jenkins Enterprise - Operations center
Evidence
You are seeing a combination of the code below in your logs:
Caused: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
This means something changed the SAX driver, so any plugin that should use XML parsing could stop working correctly.
Workaround
A possible workaround to try solving this issue is adding the Java argument:
-Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser