parent
f7f49fa96e
commit
97d18665ef
|
@ -10,7 +10,7 @@
|
|||
<Arg><Ref refid="Server"/></Arg>
|
||||
<Arg>
|
||||
<Call class="org.eclipse.jetty.util.StringUtil" name="csvSplit">
|
||||
<Arg><Property name="gcloud.addServerClasses"><Default>file:${jetty.base}/lib/gcloud</Default></Property></Arg>
|
||||
<Arg><Property name="gcloud.addServerClasses"><Default>file:<Property name="jetty.base"/>/lib/gcloud</Default></Property></Arg>
|
||||
</Call>
|
||||
</Arg>
|
||||
</Call>
|
||||
|
|
|
@ -474,9 +474,6 @@ public class WebAppClassLoader extends URLClassLoader
|
|||
@Override
|
||||
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
|
||||
{
|
||||
LOG.setDebugEnabled(true);
|
||||
WebAppContext.LOG.setDebugEnabled(true);
|
||||
|
||||
synchronized (getClassLoadingLock(name))
|
||||
{
|
||||
ClassNotFoundException ex= null;
|
||||
|
|
|
@ -1642,10 +1642,12 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
|
|||
/* ------------------------------------------------------------ */
|
||||
public static void addServerClasses(Server server,String... pattern )
|
||||
{
|
||||
// look for a Server attribute with the list of Server classes
|
||||
// to apply to every web application. If not present, use our defaults.
|
||||
Object o = server.getAttribute(SERVER_SRV_CLASSES);
|
||||
if (pattern == null || pattern.length == 0)
|
||||
return;
|
||||
|
||||
// look for a Server attribute with the list of Server classes
|
||||
// to apply to every web application. If not present, use our defaults.
|
||||
Object o = server.getAttribute(SERVER_SRV_CLASSES);
|
||||
if (o instanceof ClasspathPattern)
|
||||
{
|
||||
((ClasspathPattern)o).add(pattern);
|
||||
|
@ -1666,10 +1668,12 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
|
|||
/* ------------------------------------------------------------ */
|
||||
public static void addSystemClasses(Server server,String... pattern )
|
||||
{
|
||||
if (pattern == null || pattern.length == 0)
|
||||
return;
|
||||
|
||||
// look for a Server attribute with the list of System classes
|
||||
// to apply to every web application. If not present, use our defaults.
|
||||
Object o = server.getAttribute(SERVER_SYS_CLASSES);
|
||||
|
||||
if (o instanceof ClasspathPattern)
|
||||
{
|
||||
((ClasspathPattern)o).add(pattern);
|
||||
|
|
Loading…
Reference in New Issue