| 1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 |
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd"> |
| 3 |
|
| 4 |
<!-- ================================================================== |
| 5 |
Configure and deploy the test web application in $(jetty.home)/webapps/test |
| 6 |
|
| 7 |
Note. If this file did not exist or used a context path other that /test |
| 8 |
then the default configuration of jetty.xml would discover the test |
| 9 |
webapplication with a WebAppDeployer. By specifying a context in this |
| 10 |
directory, additional configuration may be specified and hot deployments |
| 11 |
detected. |
| 12 |
===================================================================== --> |
| 13 |
|
| 14 |
<Configure id="webapp" class="org.eclipse.jetty.ee9.webapp.WebAppContext"> |
| 15 |
|
| 16 |
<Set name="contextPath">/test</Set> |
| 17 |
|
| 18 |
<Call name="getResourceFactory"> |
| 19 |
<Call id="realmResource" name="newResource"> |
| 20 |
<Arg><SystemProperty name="jetty.home" default="."/>/test-standard-realm.properties</Arg> |
| 21 |
</Call> |
| 22 |
</Call> |
| 23 |
|
| 24 |
<Get name="securityHandler"> |
| 25 |
<Set name="loginService"> |
| 26 |
<New class="org.eclipse.jetty.security.HashLoginService"> |
| 27 |
<Set name="name">Test Realm</Set> |
| 28 |
<Set name="config"><Ref refid="realmResource"/></Set> |
| 29 |
</New> |
| 30 |
</Set> |
| 31 |
<Set name="authenticator"> |
| 32 |
<New class="org.eclipse.jetty.ee9.security.authentication.FormAuthenticator"> |
| 33 |
<Set name="alwaysSaveUri">true</Set> |
| 34 |
</New> |
| 35 |
</Set> |
| 36 |
<Set name="checkWelcomeFiles">true</Set> |
| 37 |
</Get> |
| 38 |
|
| 39 |
<Set name="parentLoaderPriority">true</Set> |
| 40 |
|
| 41 |
<!-- Non standard error page mapping --> |
| 42 |
<!-- |
| 43 |
<Get name="errorHandler"> |
| 44 |
<Call name="addErrorPage"> |
| 45 |
<Arg type="int">500</Arg> |
| 46 |
<Arg type="int">599</Arg> |
| 47 |
<Arg type="String">/dump/errorCodeRangeMapping</Arg> |
| 48 |
</Call> |
| 49 |
</Get> |
| 50 |
--> |
| 51 |
|
| 52 |
|
| 53 |
</Configure> |