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