Grid to PDF - Java

On the new java version of hte grid to pdf sample, I and getting an error.

I have the class, jar, and sample files in place, and I have added the web.xml code for the servlet to my current web.xml. The sample page loads fine, and when I click the ‘Get as PDF’ button, the popup opens to the /generate page, but I get the following error.

java.lang.NoClassDefFoundError: com/dhtmlx/xml2pdf/PDFWriter
java.lang.Throwable.(Throwable.java:196)
java.lang.Error.(Error.java:49)
java.lang.NoClassDefFoundError.(NoClassDefFoundError.java:40)
PDFGenerator.doPost(PDFGenerator.java:19)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Have you copied all classes from com.dhtmlx.xml2pdf ?

Yes, I have done that.

Okay, I am back to working on this feature. We have upgraded our server to using JDK6 and can not open up the /generate popup when I click a toolbar button from my page, but I get a blank pop up.

I have the web.xml code added, I have the PDFGenerator class file and com files in place, as well as the jar in my lib.

I am not sure what I am missing.

Do you have any exceptions in log for the export scenario?

I have the same problem. PDFWriter File fails at line: parser.setXML (xml);

Within PDFXMLParser file, it fails in the sentence:

if (orientation_string! = null) {
if (orientation_string.equalsIgnoreCase (“landscape”)) {
orientation = A4.LANDSCAPE;
Else {}
orientation = A4.PORTRAIT;
}

The debugger indicates that the PDFWriter file is a bad version.

Can you fix it?

Thank you very much for your attention.

I have the same problem. PDFWriter File fails at line: parser.setXML (xml);
Can you provide a full stack trace ?