You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Arun Jayaprakash <ar...@eginnovations.com> on 2003/02/08 15:09:56 UTC
Using JasperReports with Tomcat's Xerces : NoClassDefFound exception
Hello to all,
I am facing a strange problem while using JasperReports & Xerces with Tomcat v4.1.12. I found that xercesImpl.jar and xmlParserAPIs.jar were present in the common\endorsed folder and assumed that they would be loaded for use with my application. The application that I am developing, starts Tomcat before loading itself. Since the JSP pages compiled properly, I thought that the required classes were present in the classpath.
However when I execute a JasperReport function that reads from an xml file, a NoClassDefFound exception is thrown specifying that the class org.xml.sax.ErrorHandler is not found. Thinking that the version of Xerces that came with Tomcat is older than what JasperReports comes with, I replaced the jar files. Only to see my application not starting!!
I also tried adding the new jar files in the shared\lib folder - while having/removing the older jars in the common\endorsed folder, but it was of no use.
Can anybody tell me where I am going wrong. I tried looking through the archives but could not come up with anything similar (perhaps my search criteria was wrong!)
Regards,
Arun Jayaprakash.