Hi,
I developed a class that generates reports using the Singleton Design Pattern.
When my JSP calls for a report it receives the unique instance of the class,
which generates a new PDF file. The name of the new file is structured as
follows:
PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream
("../../../../pdfs/RelatAcomp"+getCounter()+".pdf"));
So this gives me RelatAcomp1.pdf, RelatAcomp2.pdf, etc... etc...
First of all it works perfectely!
But If I restart the database or restart the application server, I need to
recompile the class. Otherwise it returns:
java.io.FileNotFoundException: ../../../../pdfs/RelatAcomp1.pdf (No such file
or directory)
I've been using iText generating reports just like this for quite a long
time, using JRun application server. Since I've moved to Tomcat 4.1.27 these
problems have started.
Can anyone help me?
Thanks in advance.
Phil.
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions