I'm running a Jetty 8.1.12 server within an OSGi container thanks to jetty-osgi-boot as explained in Jetty 8 and Jetty 9 documentation
I want to configure the default webapp descriptor (etc/webdefault.xml
). When I define jetty.home
, jetty picks up etc/jetty.xml
but it does not load etc/webdefault.xml
I do not want to rely on a configuration bundle (through the jetty.home.bundle
system property) because I want the config easily modifiable.
I do not want to rely on the Jetty-defaultWebXmlFilePath
MANIFEST header for the same reason, plus it would tie my webapp to jetty.
The jetty-osgi-boot bundle contains a jetty-deployer.xml
configuration file with this commented-out chunk :
<!-- Providers of OSGi Apps -->
<Call name="addAppProvider">
<Arg>
<New class="org.eclipse.jetty.osgi.boot.OSGiAppProvider">
<Set name="defaultsDescriptor"><Property name="jetty.home" default="."/>/etc/webdefault.xml</Set>
...
which does not work because the OSGiAppProvider
class does not exist anymore.
Is there any other way to configure the webdefaults.xml file location ?