Support Center

Burp Community

See what our users are saying about Burp Suite:

How do I?

New Post View All

Feature Requests

New Post View All

Burp Extensions

New Post View All

Bug Reports

New Post View All

Burp Suite Documentation

Take a look at our Documentation section for full details about every Burp Suite tool, function and configuration option.

Full Documentation Contents Burp Projects
Suite Functions Burp Tools
Options Using Burp Suite

Burp Extender

Burp Extender lets you extend the functionality of Burp Suite in numerous ways.

Extensions can be written in Java, Python or Ruby.

API documentation Writing your first Burp Suite extension
Sample extensions View community discussions about Extensibility
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

SAX2 driver class org.apache.xercer.parses.SAXParser not found

Lievi Apr 11, 2017 07:56PM UTC

Hello friends

I'm trying to parse XML from requests in my plugin but every time this error occours:

java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser

at org.xml.sax.helpers.XMLReaderFactory.loadClass(

at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(

at sun.reflect.DelegatingMethodAccessorImpl.invoke(

at java.lang.reflect.Method.invoke(

org.xml.sax.SAXException: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser

I'm using the ElementTree to do this parse (import xml.etree.ElementTree as ET).

Someone knows how i can solve this problem? Thanks

Dafydd Stuttard Apr 13, 2017 03:11PM UTC Support Center agent

Did you include the relevant libraries within your compiled JAR file, or put them into the library folder configured in Extender options?

Lievi Apr 13, 2017 05:53PM UTC
Hello Dafydd, i'm putting into the library folder

Dafydd Stuttard Apr 18, 2017 03:10PM UTC Support Center agent

It’s hard to know what might be going wrong. Burp creates a class loader for each extension, configured to use the extension’s JAR file and any JAR files in the configured library folder. So if your library dependencies are in a correctly structured JAR file in the right location, they should be accessible to the class loader.

Please can you verify the library JAR contents, and if that doesn’t account for the problem, then try copying the .class files from the library JAR into your extension JAR, in the correct folder structure for each package. Normally, this just involves unzipping your JAR and the library JAR, merging the contents, and re-zipping.

Post Your public answer

Your name
Your email address