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

java security AccessControlException

ajse ruku
Ranch Hand

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

with regards,
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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 script).
I agree. Here's the link:
subject: java security AccessControlException
It's not a secret anymore!