You can specify the bootdelegation package via servlet init param in web.xml of the sling webapp
<servlet> <display-name>Sling Servlet</display-name> <servlet-name>sling</servlet-name> <servlet-class>org.apache.sling.launchpad.webapp.SlingServlet</servlet-class> ... <!-- Custom bootdelegation to allow resolution of XPath, Xerces and Xalan --> <init-param> <param-name>sling.bootdelegation.com.sun.org.apache</param-name> <param-value>com.sun.org.apache.*</param-value> </init-param> <load-on-startup>100</load-on-startup> </servlet> Chetan Mehrotra On Fri, Jul 22, 2011 at 9:19 PM, Markus Joschko <markus.josc...@gmail.com>wrote: > On Fri, Jul 22, 2011 at 5:41 PM, Justin Edelson > <jus...@justinedelson.com> wrote: > > That's correct. boot delegation is something defined at the time the > > OSGi framework starts and is then fixed for the lifetime of that > > framework instance. You can change the contents of sling.properties at > > any time, but it requires a restart to take effect. > > OK, no big deal as that is hopefully not happening that often. > But in addition I would like to add this to the sling.properties which > is backed into the launchpad so I have it already available > when setting up a new environment. > What's the best way to extend the "default" sling.properties? > I added a sling.properties file to my launchpad project and that > completely replaces the default sling.properties. > Do I have to add the default entries by hand or is there another way > so only my one entry is added to the default sling.properties? > > Thanks, > Markus > > > > > > > On Fri, Jul 22, 2011 at 11:24 AM, Markus Joschko > > <markus.josc...@gmail.com> wrote: > >> OK, so there is no way to "contribute" that information from the > >> bundle that requires the information? > >> Just to make sure I do not miss something: sling.properties I either > >> configure in the launchpad or by hand after the initial installation? > >> > >> > >> On Fri, Jul 22, 2011 at 5:19 PM, Justin Edelson > >> <jus...@justinedelson.com> wrote: > >>> Also sling.properties > >>> > >>> On Jul 22, 2011, at 11:17 AM, Markus Joschko <markus.josc...@gmail.com> > wrote: > >>> > >>>> Hi, > >>>> I need to make the class com.sun.xml.internal.ws.api.message.Header > >>>> available to a bundle. > >>>> I can get this done by adding the package to the > >>>> org.osgi.framework.bootdelegation in sling.properties > >>>> > >>>> After having read http://sling.apache.org/site/configuration.html I > >>>> would rather set a sling.bootdelegation property. > >>>> But where do I add this property? Can I set it from the bundle? > >>>> > >>>> Must be something very obvious, but I miss it somehow. > >>>> > >>>> Thanks, > >>>> Markus > >>> > >> > > >