[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-dev] Executing JettyWebConfiguration before WebInfConfiguration and potential problems
|
Navendu,
The idea is that either code or a context xml file can set up that
kind of configuration before any of the WEB-INF descriptors are
applied. Then jetty-web.xml will bring up the rear and give a final
opportunity to change config before the context is started. I doubt
you could put it first, as WebInfConfiguration is responsible for
setting up a lot of the webapp's basic configuration that would be
expected to be established by the time jetty-web.xml is run. That
said, depending on what you want to do, you may be able to get away
with it, but it would be a fragile solution.
Jan
On 1 March 2013 04:32, Navendu Garg <ngarg@xxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I've noticed that JettWebConfiguration class is executed at the very end in
> the DEFAULT_CONFIGURATION_CLASSES list:
>
> public static String[] DEFAULT_CONFIGURATION_CLASSES =
> {
> "org.eclipse.jetty.webapp.WebInfConfiguration",
> "org.eclipse.jetty.webapp.WebXmlConfiguration",
> "org.eclipse.jetty.webapp.MetaInfConfiguration",
> "org.eclipse.jetty.webapp.FragmentConfiguration",
> "org.eclipse.jetty.webapp.JettyWebXmlConfiguration"
> } ;
>
> Can I change the execution order i.e. I want to execute
> JettyWebXmlConfiguration first and then all the other classes. This way I
> can set webapp specific override parameters that I can pass to other
> configuration files such as WebInfConfiguration.WEBINF_JAR_PATTERN.
>
>
>
>
> _______________________________________________
> jetty-dev mailing list
> jetty-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-dev
--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com – Developer advice, services and support
from the Jetty & CometD experts.