Hi, I have a very small program as following, when I run the main() method, it successfully create the PDF file.
But when I call createPdf() method from my web application, it always gave me the error "java.lang.Exception: org.apache.jasper.JasperException: com/lowagie/text/Document". I was wondering if it was caused by the older version of itext jar file, I remove all the old version files, but it still gave me the error. Any clue? Thanks. ************************************************ public class MyFirstPdfPTable { public static void main(String[] args) { createPdf(); } public static void createPdf() { Document document = new Document(); try { PdfWriter.getInstance(document, new FileOutputStream("C:\\_JBuilder2005Webs\\my_first_pdfptable.pdf")); document.open(); PdfPTable table = new PdfPTable(3); PdfPCell cell = new PdfPCell(new Paragraph("header with colspan 3")); cell.setColspan(3); table.addCell(cell); table.addCell("1.1"); table.addCell("2.1"); table.addCell("3.1"); document.add(table); } catch (DocumentException de) { System.err.println(de.getMessage()); } catch (IOException ioe) { System.err.println(ioe.getMessage()); } document.close(); } } *********************************************** Sarah -- View this message in context: http://www.nabble.com/run-time-problem-tp15342520p15342520.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/