| 1 |
<?xml version="1.0"?> |
| 2 |
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd"> |
| 3 |
|
| 4 |
|
| 5 |
<!-- =============================================================== --> |
| 6 |
<!-- Configure the test-annotations webapp --> |
| 7 |
<!-- =============================================================== --> |
| 8 |
|
| 9 |
<Configure id='wac' class="org.eclipse.jetty.webapp.WebAppContext"> |
| 10 |
|
| 11 |
<New id="tx" class="org.eclipse.jetty.plus.jndi.Transaction"> |
| 12 |
<Arg> |
| 13 |
<New class="com.acme.MockUserTransaction"/> |
| 14 |
</Arg> |
| 15 |
</New> |
| 16 |
|
| 17 |
|
| 18 |
<!-- =============================================================== --> |
| 19 |
<!-- Configure the webapp --> |
| 20 |
<!-- =============================================================== --> |
| 21 |
<!-- Only uncomment this if you are not using the plus and |
| 22 |
annotations sections of start.ini |
| 23 |
|
| 24 |
<Set name="configurationClasses"> |
| 25 |
<Call class="org.eclipse.jetty.webapp.Configuration$ClassList" name="serverDefault"> |
| 26 |
<Arg><Ref refid="Server" /></Arg> |
| 27 |
<Call name="addAfter"> |
| 28 |
<Arg name="afterClass">org.eclipse.jetty.webapp.FragmentConfiguration</Arg> |
| 29 |
<Arg> |
| 30 |
<Array type="String"> |
| 31 |
<Item>org.eclipse.jetty.plus.webapp.EnvConfiguration</Item> |
| 32 |
<Item>org.eclipse.jetty.plus.webapp.PlusConfiguration</Item> |
| 33 |
<Item>org.eclipse.jetty.annotations.AnnotationConfiguration</Item> |
| 34 |
</Array> |
| 35 |
</Arg> |
| 36 |
</Call> |
| 37 |
</Call> |
| 38 |
</Set> |
| 39 |
--> |
| 40 |
|
| 41 |
<Set name="contextPath">/test-spec</Set> |
| 42 |
<Set name="war"><Property name="jetty.webapps"/>/test-spec.war</Set> |
| 43 |
<Set name="configurationDiscovered">true</Set> |
| 44 |
|
| 45 |
<Get name="securityHandler"> |
| 46 |
<Set name="loginService"> |
| 47 |
<New class="org.eclipse.jetty.security.HashLoginService"> |
| 48 |
<Set name="name">Test Realm</Set> |
| 49 |
<Set name="config"><SystemProperty name="jetty.base" default="."/>/etc/realm.properties</Set> |
| 50 |
</New> |
| 51 |
</Set> |
| 52 |
</Get> |
| 53 |
|