> From: Anand HS [mailto:anan...@gmail.com] > Subject: Re: Tomcat cleaning up work folder by itself > > ClassLoader cl = Thread.currentThread().getContextClassLoader(); > java.net.URL url = cl.getResource("PasswordRules.properties"); > System.out.println("url available"+(null!=url)); > > However, after some time ( arbitrary amounts ) tomcat , the > above SOP starts printing url available = false which indicates > the resource file is not available.
Something's not right - the classloader should always be able to retrieve the properties file, even if it has to extract it from the jar again. You appear to be running on Windows; have you tried setting the antiJARLocking and antiResourceLocking attributes in the webapp's <Context> element? You might want to move up to 6.0.24 just to see if anything changes. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org