Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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!