Hi there,
well, I try to port the XfdfExample (which runs fine a a standalone app
using iText2.0.5.jar and Sun JDK 1.6) to run inside a Tomcat 5.5'
servlet's processRequest method being called by the methods doGet() and
doPost().
(For now my code only only generates the PDF file registered_xfdf.pdf
being merged from SimpleRegistrationForm.pdf and register.xfdf. It will
be returned to the user who entered the form data later...)
Unfortunately, the PdfWriter reports at runtime the error below. Can you
please help and tell me what pieces I am missing? I develop the servlet
using Netbeans 5.5.1 and the servlet generating and deployment as war
file otherwise does not produce any errors.
Thanks for help,
Dirk
javax.servlet.ServletException: Servlet execution threw an exception
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:368)
root cause
java.lang.IllegalAccessError: tried to access method
com.lowagie.text.pdf.PdfAcroForm.<init>(Lcom/lowagie/text/pdf/PdfWriter;
)V from class com.lowagie.text.pdf.internal.PdfAnnotationsImp
com.lowagie.text.pdf.internal.PdfAnnotationsImp.<init>(Unknown
Source)
com.lowagie.text.pdf.PdfDocument.addWriter(Unknown Source)
com.lowagie.text.pdf.PdfStamperImp.<init>(Unknown Source)
com.lowagie.text.pdf.PdfStamper.<init>(Unknown Source)
com.elo.acroform.processing.SimpleRegistrationFormServlet.processRequest
(SimpleRegistrationFormServlet.java:44)
com.elo.acroform.processing.SimpleRegistrationFormServlet.doGet(SimpleRe
gistrationFormServlet.java:64)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:368)
---
ELO Digital Office GmbH
Firmensitz: Heilbronner Strasse 150, 70191 Stuttgart
Postanschrift: Postfach 30 03 89, 70443 Stuttgart
Fon: +49 711 806089-0, Fax: +49 711 806089-19, Web: www.elo.com
Registergericht Stuttgart; HRB 15059
Geschaftsfuhrer: Karl Heinz Mosbach, Matthias Thiele
Landesbank Baden-Wurttemberg, Konto-Nr. 2089782, BLZ 600 501 01
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/