330419 - reloading webapp duplicates StandardDescriptorProcessor

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2529 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Jan Bartel 2010-11-17 03:30:14 +00:00
parent e24075a294
commit b063893cdf
3 changed files with 26 additions and 0 deletions

View File

@ -4,6 +4,7 @@ jetty-7.2.2-SNAPSHOT
+ 330188 Reject web-fragment.xml with same <name> as another already loaded one
+ 330229 Jetty tries to parse META-INF/*.tld when jsp-api is not on classpath, causing DTD entity resoluton to fail
+ 330417 Atomic PUT in PutFilter
+ 330419 Reloading webapp duplicates StandardDescriptorProcessor
jetty-7.2.1.v20101111 11 November 2010
+ 324679 Fixed dedection of write before static content

View File

@ -112,6 +112,29 @@ public class MetaData
{
}
/**
* Empty ready for reuse
*/
public void clear ()
{
_webDefaultsRoot = null;
_origins.clear();
_webXmlRoot = null;
_webOverrideRoots.clear();
_metaDataComplete = false;
_annotations.clear();
_descriptorProcessors.clear();
_webFragmentRoots.clear();
_webFragmentNameMap.clear();
_webFragmentResourceMap.clear();
_webFragmentAnnotations.clear();
_webInfJars.clear();
_orderedWebInfJars.clear();
_orderedContainerJars.clear();
_ordering = null;
allowDuplicateFragmentNames = false;
}
public void setDefaults (Resource webDefaults)
throws Exception
{

View File

@ -541,6 +541,8 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
_configurations[i].deconfigure(this);
_configurations=null;
if (_metadata != null)
_metadata.clear();
}
finally