Adding classes to OSGi boot class loader (BootDelegation)

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

Purpose

Some third-party apps or external tools require its classes or dependencies to be loaded by the OSGi framework, and most documented procedures involve modifying the default parameter: -Datlassian.org.osgi.framework.bootdelegation. However, this is unsupported and it could cause unintended effects on Jira's startup process or of its installed apps. This is one of the reasons we introduced a new flag to the Atlassian Plugin Framework, our implementation of OSGi: -Datlassian.org.osgi.framework.bootdelegation.extra.

This new flag will append classes to our default configuration of boot delegation, minimizing the risk of negatively impacting the application's behavior.

Solution

To introduce this flag in your installation you may follow the same steps as instructed by the vendor requiring this change to setup their tool or app, but append the '.extra' to the end of the parameter and input only the classes linked to the app or tool. Here is an example:

-Datlassian.org.osgi.framework.bootdelegation.extra=com.mycompany.myapp.*,com.mycompany.myotherapp.*
DescriptionAppending third-party classes to OSGi's (plugin framework) boot loader.
ProductJira, Jira Core, Jira Service Management, Jira Software


https://confluence.atlassian.com/jirakb/adding-classes-to-osgi-boot-class-loader-bootdelegation-973483231.html

Last modified on Nov 23, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.