tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <>
Subject Re: <Host copyXML="true"> does not work for ear files
Date Tue, 07 Oct 2014 14:14:18 GMT

2014-10-07 15:44 GMT+02:00 bodop <>:
> Hello list,
> I deploy an EAR file with two web applications to the <Deployments> dir.
> I have set copyXML of the default host to "true" and expected that the
> META-INF/context.xml of the web application that contains it is copied
> to $CATALINA_BASE/conf/[engine]/[host]/mywebapp.xml because I would like
> to overwrite if for the next restart. But instead the directory only
> contains manager.xml and host-manager.xml of the default plain web
> applications. Also placing mywebapp.xml myself into the directory does
> not result in overwriting the included context.xml. How can I achieve it?

This is not handled today for ears, only for war but context.xml in
META-INF of the war should be read.

> Btw: May one web application inside the ear got to "localhost" and the
> other one to "anotherhost"?

Yes, you can do <web app name>

uses it, see <args> ...</args>

Note that this works cause Hosts are defined in server.xml

> Best regards
> Bodo
> --
> View this message in context:
> Sent from the TomEE Users mailing list archive at

View raw message