aspose file tools*
The moose likes Linux / UNIX and the fly likes Linux problem getting error in creating folder via tomcat app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Linux problem getting error in creating folder via tomcat app " Watch "Linux problem getting error in creating folder via tomcat app " New topic
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: 15641
    
  15

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Linux problem getting error in creating folder via tomcat app
 
Similar Threads
New to Linux!!!
Error in Servlet compilation
Apache Server Notification
How to save files outside the webapp folder?
How to be notified when a user is using my application and locks their computer.