I have just started to work with JavaWeb Services. I implemented a service that creates just a black image and a web browser client, where you can input a path. But actually it does not work. After submitting the targetpath I get the following error msg. in log File. java.security.AccessControlException: access denied (java.io.FilePermission D:\temp\test.bmp delete)
I know that there is a security problem, when web services want to craete files. But how can I correct the problem?
Are you running the server with a SecurityManager? Then you would need to adjust its Policy to allow you to create files. Alternatively, create the file in the location you get from File.createTempFile.
Anything worth doing well is worth doing poorly first. Just look at this tiny ad: