This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 193
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: 41046
    
  43
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
 
Similar Threads
Cant use object from another class
Posting to bump up my count...
Text box value is not being completely filled with request attribute
WA #1.....word association
The x900 effect ?