• 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

upload file (username and pwd)  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi all,

I want to copy a file from client to server but I get the following error:
19-Feb-2018 14:55:55.097 SEVERE [http-nio-8080-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [eStationBase] in context with path [/examples] threw exception
java.io.IOException: java.io.FileNotFoundException: /home/annaamat/datiProv/prova2.html (Permission denied)
       at org.apache.catalina.core.ApplicationPart.write(ApplicationPart.java:121)

I guess I need to pass username and pwd but I don't know how to do it... Can anyone point me how to do it? (code posted below)

Thanks in advance,
Anna

HTML form:



Servlet:
 
Anna Amatus
Greenhorn
Posts: 12
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sorry! Found the solution. I created a new folder and granted permisses to the tomcat user

anna
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!