java - FileNotFound: Access Denied -


i have new windows 10 machine. tomcat throwing error -

    filenotfoundexception - access denied   

while writing application log. able create folders or save file in same path when try programmatic, throwing error

    access denied 

when checked 'canwrite()' on path returning true.

    canwrite:true     java.io.filenotfoundexception: c:\users\<user>\logs (access denied) 

i tried giving 'full control' folder didn't help.

any pointers ? thanks!

  1. reboot , retry (i have seen exact same in windows domain environment. after reboot works.);
  2. is tomcat started service, or standalone app? check user own tomcat process;
  3. if both failed, try delete log folder, see if other process locks log folder;
  4. at last, can use process monitor (https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) drill internal data windows, see happens.

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -