Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!