[ https://issues.apache.org/jira/browse/OFBIZ-4856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269569#comment-13269569 ]
Jacopo Cappellato commented on OFBIZ-4856: ------------------------------------------ Hans, what is the purpose of the code in Captcha.deleteFile? public static void deleteFile() { if (CAPTCHA_FILE_PATH != null) { File file = new File(CAPTCHA_FILE_PATH); file.delete(); } } If I read it right it deletes the folder runtime/tempfiles/captcha/ rather than an individual file. > webapp "tempfiles" is not successfully loaded because of > java.io.FileNotFoundException during startup > ----------------------------------------------------------------------------------------------------- > > Key: OFBIZ-4856 > URL: https://issues.apache.org/jira/browse/OFBIZ-4856 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Leon > Fix For: SVN trunk > > Attachments: OFBIZ-4856.patch > > > During startup, there's a "java.io.FileNotFoundException" thrown out when > ofbiz trying to load webapp "tempfiles" which is defined by framework/images > component. > The file not found is "runtime/tempfiles/WEB-INF/web.xml". This file does not > exist from the very first, catalina container will use default web.xml > instead. > I apply a patch for this issue to catch the "java.io.FileNotFoundException" > and bypass it. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira