Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Using override-web.xml

I’m trying to use the override-web.xml feature ( to override some of the web.xml configuration in an app. There are two parts of web.xml that I need to override, the<transport-guarantee> and <form-login-page> . So my WebAppContext configuration includes this:


<Set name="overrideDescriptor">override-web.xml</Set>


And my override-web.xml look like this:


<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns:xsi="" xmlns="" xmlns:web="" xsi:schemaLocation="" id="WebApp_ID" version="2.5">




                     <web-resource-name>Protected Area</web-resource-name>

                     <!-- Define the context-relative URL(s) to be protected -->













              <realm-name>Health E Systems</realm-name>









It seems that the <transport-guarantee> is working (when I run I am not required to use https), but the login page doesn’t seem to be working. I am not automatically redirected to that page as expected (it does work as intended if I simply change the<form-login-page>  value directly in the app’s web.xml).

Am I doing something wrong? Is there a limit as to what can be overridden with this capability?





Back to the top