408768 JSTL jars not scanned by jetty-ant

This commit is contained in:
Jan Bartel 2013-05-23 16:05:09 +10:00
parent 610499de67
commit 8ed25ec478
1 changed files with 5 additions and 2 deletions

View File

@ -631,7 +631,7 @@ public class AntWebAppContext extends WebAppContext
/**
* @see WebApplicationProxy#start()
*
*/
public void doStart()
{
@ -641,7 +641,10 @@ public class AntWebAppContext extends WebAppContext
if (jettyEnvXml != null && jettyEnvXml.exists())
envConfiguration.setJettyEnvXml(Resource.toURL(jettyEnvXml));
AntURLClassLoader parentLoader = new AntURLClassLoader((AntClassLoader)this.getClass().getClassLoader());
ClassLoader parentLoader = this.getClass().getClassLoader();
if (parentLoader instanceof AntClassLoader)
parentLoader = new AntURLClassLoader((AntClassLoader)parentLoader);
setClassLoader(new WebAppClassLoader(parentLoader, this));
if (attributes != null && attributes.getAttributes() != null)
{