This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java security AccessControlException

 
ajse ruku
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic