| Author |
Linux problem getting error in creating folder via tomcat app
|
subodh gupta
Ranch Hand
Joined: Jul 23, 2007
Posts: 203
|
|
Hello I need to create a folder at runtime and download some zip in that an extract them in the folder.
Once in month/year we need to clear it up using the some batch.
So i need to know, do i need to set permission for my app to access the system folder because as it is I am getting the exception in doing it.
java.lang.RuntimeException: Unable to create the local folder for downloading file: /var/abc/ore
Any suggestion i need this urgently
Between i am novice and don't know to much of linux/unix so please bear for my insanity. The entire system has been setup by me so please suggest keeping that in mind.
|
http://subodh-gupta.blogspot.com
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14460
|
|
For a webapp to be able to create a folder, the parent folder must have the right access rights for the user ID under which Tomcat is running.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
subodh gupta
Ranch Hand
Joined: Jul 23, 2007
Posts: 203
|
|
|
Thanks Tim. It helped.
|
 |
he yx
Greenhorn
Joined: Apr 10, 2011
Posts: 6
|
|
you can create folder before run you web app,then you can create zip in this folder while your app is running.
zip file named like this: year-month-day-hh-mm.zip
|
 |
 |
|
|
subject: Linux problem getting error in creating folder via tomcat app
|
|
|