diff options
author | Greg Wilkins | 2015-11-19 01:10:36 +0000 |
---|---|---|
committer | Greg Wilkins | 2015-11-19 01:14:05 +0000 |
commit | a311c8bde171551a57ff28c04851a3b53acfc1e0 (patch) | |
tree | 39dafd6f524d0b2b0e834888a66ebc1603614dc4 /examples | |
parent | 65d33f8b49bd51140d9fe9b024c5dd42ad7571d8 (diff) | |
download | org.eclipse.jetty.project-a311c8bde171551a57ff28c04851a3b53acfc1e0.tar.gz org.eclipse.jetty.project-a311c8bde171551a57ff28c04851a3b53acfc1e0.tar.xz org.eclipse.jetty.project-a311c8bde171551a57ff28c04851a3b53acfc1e0.zip |
480904 - jetty-util Loader simplification
The Loader has been simplified to now just be a switch between loading from the context loader,
the same loader as another class or the system loader. Multiple loaders will never be tried.
A new runWithServerClassAccess(PriviledgedAction) method has been added to WebAppClassLoader, that
is now used during configuration for actions that need access to both the WEB-INF/lib classes and
the server classes (eg jetty-web.xml and env.xml).
The JMX MBean mechanism has also been modified to look for an MBean class in the same loader that
object came from before attempting the context loader (only if different).
Diffstat (limited to 'examples')
-rw-r--r-- | examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneWebApp.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneWebApp.java b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneWebApp.java index e6882556ad..312d0adc7f 100644 --- a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneWebApp.java +++ b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneWebApp.java @@ -52,9 +52,8 @@ public class OneWebApp WebAppContext webapp = new WebAppContext(); webapp.setContextPath("/"); File warFile = new File( - "../../jetty-distribution/target/distribution/test/webapps/test/"); + "../../tests/test-jmx/jmx-webapp/target/jmx-webapp"); webapp.setWar(warFile.getAbsolutePath()); - webapp.addAliasCheck(new AllowSymLinkAliasChecker()); // A WebAppContext is a ContextHandler as well so it needs to be set to // the server so it is aware of where to send the appropriate requests. |