• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

access denied on pdf file

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
I love a woman who dresses in stainless steel ... and carries tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic