Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Linux problem getting error in creating folder via tomcat app

 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18156
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim. It helped.
 
he yx
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic