Index: ClasspathSpool.java =================================================================== --- ClasspathSpool.java (revision 12680) +++ ClasspathSpool.java (working copy) @@ -86,7 +86,26 @@ URL url = ClasspathResourcesUtil.getResource(MGNL_RESOURCES_ROOT + filePath); if(url != null){ URLConnection connection = url.openConnection(); - return connection.getLastModified(); + + connection.setDoInput(false); + connection.setDoOutput(false); + + long lastModified = connection.getLastModified(); + InputStream is = null; + try + { + is = connection.getInputStream(); + if (is != null) + { + is.close(); + } + } + finally + { + IOUtils.closeQuietly(is); + } + + return lastModified; } } catch (IOException e) {