Community
Participate
Working Groups
Build Identifier: 7.5.4.v20111024 Setting defaultsDescriptor on OSGiAppProvider has no effect. This setting is not applied to the created WebAppContext instance. After WebAppContext is created and published as an OSGi service, JettyContextHandlerServiceTracker receives a notification about that, and since the OSGi service registration does not have "defaultWebXmlFilePath" property set, it assumes default location, as for any normal web application, i.e. org/eclipse/jetty/webapp/webdefault.xml. Then, when it calls WebBundleDeployerHelper to register web application, it sees that defaultWebXmlPath is already specified and does not applies OSGiAppProvider's value. So in the end, the jetty's internal webdefault.xml is always used. My current workaround is to extend OSGiAppProvider with my own class and in overridden addContext() method set the OSGiAppProvider's defaultsDescriptor to WebAppContext, in the place near extractWAR property is being set. Reproducible: Always Steps to Reproduce: 1. Use jetty, with jetty.osgi.boot. 2. In jetty.xml, in OSGiAppProvider's configuration set a value for defaultsDescriptor property. 3. The property value is ignored.
I believe this is fixed in release 7.6.2.v20120308. Can you verify that fix? If so, I will close this issue. thanks Jan
Nevermind, I tested it an confirmed it was fixed in 7.6.2/8.1.2.