• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting File Permissions

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

I tried the code from Leonid Dukhvalov [see thread File Upload problem]. But iam not able to write file to my web app directory in tomcat. I read the server documentation and it specifies that by default only read permission is enabled. How to setup write permission for a given web application


thnx in advance
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems more appropriate for the Servlets forum.
 
Bindesh Vij
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read the Tomcat server doc again..
What i could make out is there has to be an entry into the web.xml.. but iam really confused with it...

pls. help
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think we need more information - which operating system are you using? Write permission could be an operating system setting.
Exactly what is the text of the Exception or Error that you get when you try to write a file - frequently the text can lead you right to the problem.
Exactly how do you construct the name used to open the file?
Bill
 
Bindesh Vij
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply..

I am using win2k ..Tomcat 5.1.. Iam getting the following error

HTTP Status 404 - D:\JSoft\Tomcat 5.0\webapps\WebServlet (Access is denied)

type Status report

message D:\JSoft\Tomcat 5.0\webapps\WebServlet (Access is denied)

description The requested resource (D:\JSoft\Tomcat 5.0\webapps\WebServlet (Access is denied)) is not available.


i am using Commons File Upload..the code is



thnx ...
[ November 02, 2004: Message edited by: Bindesh Vij ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic