It looks like you have more than one iText jar in the classpath.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Schesmer, Dirk
> Sent: Wednesday, September 26, 2007 2:14 PM
> To: [email protected]
> Subject: [iText-questions] XfdfExample does not run as Servlet ?!
>
> 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
> (MonitorFilter.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.proc
> essRequest(SimpleRegistrationFormServlet.java:44)
>
>
> com.elo.acroform.processing.SimpleRegistrationFormServlet.doGe
> t(SimpleRegistrationFormServlet.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
> (MonitorFilter.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
>
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
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/