dcsimg
Do servlets run under a Security Manager by default in Suns J2EE 1.3 FCS Reference Implementation Application Server ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Christian_Leiter
Posted On:   Monday, August 19, 2002 04:57 PM

I'm trying to enhance my web-application with a servlet, that
should save some files (which I uploaded before) into arbitrary directories. When I'm trying to write the files to the local disk on the web-server the servlet throws an:

			
java.security.AccessControlException: access denied (java.io.FilePermission . write)


1.How should I proceed?
2. Should I change Tomcat's catalina.policy file in order to grant access?
3.How would such a write permission look like?

I hope somebody had a similar problem and figured it out.

Re: Do servlets run under a Security Manager by default in Suns J2EE 1.3 FCS Reference Implementation Application Server ?

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, August 20, 2002 09:18 AM

Does the username that is running the Tomcat process actually have write permission on the directory, in the filesystem, of the server machine's OS? Can it write files there outside of Tomcat?

About | Sitemap | Contact