aspose file tools*
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
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....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: access denied on pdf file
 
Similar Threads
JNDI lookup on a thread other than the main thread error
How to get rid of (check logs) in the stacktrace ?
problem of javamail within ejb
Error: uncaught exception: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "
Java test enviroment