Fixed demobase example xml

This commit is contained in:
Greg Wilkins 2015-10-26 09:45:28 +11:00
parent c0e6e66b49
commit 9a66395f0c
2 changed files with 31 additions and 26 deletions

View File

@ -19,7 +19,6 @@
<Set name="rewriteRequestURI"><Property name="jetty.rewrite.rewriteRequestURI" deprecated="rewrite.rewriteRequestURI" default="true"/></Set>
<Set name="rewritePathInfo"><Property name="jetty.rewrite.rewritePathInfo" deprecated="rewrite.rewritePathInfo" default="false"/></Set>
<Set name="originalPathAttribute"><Property name="jetty.rewrite.originalPathAttribute" deprecated="rewrite.originalPathAttribute" default="requestedPath"/></Set>
</New>
<!-- Set DispatcherTypes -->
<Set name="dispatcherTypes">
@ -28,9 +27,6 @@
<Item><Call class="javax.servlet.DispatcherType" name="valueOf"><Arg>ASYNC</Arg></Call></Item>
</Array>
</Set>
</Set>
<!-- example rule -->
<!--
@ -46,4 +42,6 @@
</Call>
-->
</New>
</Set>
</Configure>

View File

@ -11,7 +11,7 @@ directory, additional configuration may be specified and hot deployments
detected.
===================================================================== -->
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Configure id="testWebapp" class="org.eclipse.jetty.webapp.WebAppContext">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- Required minimal context configuration : -->
@ -41,6 +41,13 @@ detected.
</New>
</Set>
<!-- Set Caching Classloader that improves performance on resource searching webapps -->
<Set name="classLoader">
<New class="org.eclipse.jetty.webapp.CachingWebAppClassLoader">
<Arg><Ref refid="testWebapp"/></Arg>
</New>
</Set>
<!-- Enable symlinks
<Call name="addAliasCheck">
<Arg><New class="org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker"/></Arg>