aspose file tools*
The moose likes Java in General and the fly likes java  security  AccessControlException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java  security  AccessControlException" Watch "java  security  AccessControlException" New topic
Author

java security AccessControlException

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 194
Hi all,
When I try to run an exe in my action class(struts,Tomcat 5.o),I get java.security.AccessControlException access denied(java.io.FilePermission).How to solve this problem?Please express your views.

with regards,
Ajse
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42632
    
  65
Servlet containers frequently run with a security manager, which creates a sandbox that prohibits the use of Runtime.exec, amongst other things. This is meant to protect web apps from one another, and the server as a whole from an errant or malicious web app.
If you have control over the server, check its startup scripts for security manager related settings (for Tomcat, the "-security" switch in the catalina.sh script).


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java security AccessControlException