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!
- reboot , retry (i have seen exact same in windows domain environment. after reboot works.);
- is tomcat started service, or standalone app? check user own tomcat process;
- if both failed, try delete log folder, see if other process locks log folder;
- at last, can use process monitor (https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) drill internal data windows, see happens.
Comments
Post a Comment