| Author |
access denied on pdf file
|
Rafael Fagundes
Ranch Hand
Joined: Sep 23, 2004
Posts: 52
|
|
Hello all! In my jsp application, a report is generated in PDF format (by using itext). On development enviroment (local server) it works's fine. But in production enviroment (external server) the following exception is throwed: DocumentException: java.security.AccessControlException: access denied (java.io.FilePermission /opt/tomcat5/work/Teste/kollinghd.com.br/teste/loader/META-INF/MANIFEST.MF write) This exception is throwed when the line bellow is executed: this.document.add(this.table); //where the table it's full fill with a resultset If it work's fine in a place and it dosen't in another one, with the same configuration (Tomcat 5, Linux and Mysql 4.x), where is the problem? I think that the problem it's on the external server..... Am I rigth? Thank's for your attention, Rafael.
|
Thanks,
Rafa
|
 |
James Carman
Ranch Hand
Joined: Feb 20, 2001
Posts: 580
|
|
|
Are you starting Tomcat with the security manager turned on in the other environment? I would suspect that you are.
|
James Carman, President<br />Carman Consulting, Inc.
|
 |
Rafael Fagundes
Ranch Hand
Joined: Sep 23, 2004
Posts: 52
|
|
Hello! Well I don't know how the tomcat startup process work's ont the other enviroment. But the problem it's solved now... it was a file permission mistake. Thank's for your attention....
|
 |
 |
|
|
subject: access denied on pdf file
|
|
|