I am trying to generate an XML file using the JAXP API. From a Java application it works correctly but when used in a JSP it gives a SAXException. I am running JSP page on the Java Web Server. Why is this happening?

Suresh Rangan

It looks like your JSP file in the webserver is not able to reach the SAXparser jar file. Make sure the classpath is set properly before running the webserver and also inclusion of jar file is made to the appropriate lib directory of java webserver.