Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access denied on pdf file

 
Rafael Fagundes
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
James Carman
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you starting Tomcat with the security manager turned on in the other environment? I would suspect that you are.
 
Rafael Fagundes
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic