File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes access denied on pdf file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "access denied on pdf file" Watch "access denied on pdf file" New topic

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: access denied ( /opt/tomcat5/work/Teste/ write)

This exception is throwed when the line bellow is executed:

//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,

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

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 agree. Here's the link:
subject: access denied on pdf file
It's not a secret anymore!