JETTY-1288 added info for when atypical classloader set on WebAppContext
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2330 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
cd7926584d
commit
fdff282605
|
@ -5,6 +5,7 @@ jetty-7.2.0.RC1-SNAPSHOT
|
|||
+ 326734 Configure Digest maxNonceAge with Security handler init param
|
||||
+ 327109 Fixed AJP handling of empty packets
|
||||
+ 327183 Allow better configurability of HttpClient for TLS/SSL
|
||||
+ JETTY-1288 Info statement when atypical classloader set on WebAppContext
|
||||
|
||||
jetty-7.2.0.RC0 1 Oct 2010
|
||||
+ 314087 Simplified SelectorManager
|
||||
|
|
|
@ -338,6 +338,12 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
|
|||
public void setClassLoader(ClassLoader classLoader)
|
||||
{
|
||||
super.setClassLoader(classLoader);
|
||||
|
||||
if ( !(classLoader instanceof WebAppClassLoader) )
|
||||
{
|
||||
Log.info("NOTE: detected a classloader which is not an instance of WebAppClassLoader being set on WebAppContext, some typical class and resource locations may be missing on: " + toString() );
|
||||
}
|
||||
|
||||
if (classLoader!=null && classLoader instanceof WebAppClassLoader && getDisplayName()!=null)
|
||||
((WebAppClassLoader)classLoader).setName(getDisplayName());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue