Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Problems with oreilly.servlet.MultipartRequest- help!

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need some help.
I am using oreilly.servlet.MultipartRequest for file uploads and have the following issue.
When I submit to upload an image to the server it is working fine - I can upload an image from my desktop to my server no problem.
But if I then select the same image (that now exists in my image dir on the server) and try to upload it again (or basically overwrite it) I get the following error: /home/sites/
(Permission denied)
at Method)
at com.oreilly.servlet.multipart.FilePart.writeTo(
at com.oreilly.servlet.MultipartRequest.<init>(
at com.oreilly.servlet.MultipartRequest.<init>(
at _live._admin._preview__jsp._jspService(/live/admin/preview.jsp:48)
at com.caucho.jsp.JavaPage.service(
at com.caucho.jsp.Page.subservice(
at com.caucho.server.http.FilterChainPage.doFilter(
at com.caucho.server.http.Invocation.service(
at com.caucho.server.http.CacheInvocation.service(
at om.caucho.server.http.RunnerRequest.handleRequest(
at .caucho.server.http.RunnerRequest.handleConnection(
//end of stack
Any idea why I can't overwrite a file that already exists?
I have 777 permissions on the image directory I'm uploading to.
I am using RESIN on a linux box.
Any help is appreciated.
BTW - My upload app worked fine on my local machine and had no probs. This occured only after I moved it to a host.
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has been asked and answered in the Servlet Forum.
Please don't post the same question multiple times.
Mark Stringham
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummm yeah Dave.... I posted it in 2 places because I was unsure of where it would best fit.
Sorry if you were bummed because you had to read it twice.
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic