On Sun, Feb 3, 2013 at 5:23 PM, arvind viswanathan < [email protected]> wrote:
> Hi, > I am running tomcat7 instance in amazon linux. I am encountering the above > message when using file upload in my application deployed in it. I get the > following message. > java.io.fileNotFoundException : /home/abc/xyz.jpg (Permission denied) > when trying to save the image in /home/abc/ > My guess would be that you are running Tomcat as a different user than the one owning the home directory you are trying to write to. In that case it doesn't really have anything to do with tomcat or fileupload. Try saving the uploaded files to some common directory. Create a directory called.. say, /opt/myapp . give full access to everything and everyone by issuing the command "sudo chmod 777 /opt/myapp". Or if you are really sure that it's what you want to do, you could just go ahead and give the user running tomcat access to write in /home/abc. /S
