Problem

We are using the Appdynamics javaagent with Jira/Confluence. When trying to install/enable the SAML SSO plugin, it fails with an undefined error message.

The following lines may appear in the log:

/rest/plugins/1.0/ [c.a.p.osgi.factory.OsgiPlugin] Unable to start the plugin container for plugin 'com.resolution.samlwrapper-plugin'
Caused by: java.lang.ExceptionInInitializerError
Caused by: org.w3c.dom.ls.LSException: An unsupported encoding is encountered.
CODE

Solution

By adding the following atlassian.org.osgi.framework.bootdelegation.extra option to the Jira/Confluence startup script (Setting Jira properties and options on startup, Configuring Confluence System Properties ) the problems should be solved: 

-Datlassian.org.osgi.framework.bootdelegation.extra=META-INF.services.*,com.yourkit,com.singularity.*,com.jprofiler,com.jprofiler.*,org.apache.xerces,org.apache.xerces.*,org.apache.xalan,org.apache.xalan.*,sun.*,com.sun.jndi,com.icl.saxon,com.icl.saxon.*,javax.servlet,javax.servlet.*,com.sun.xml.*,com.sun.org.apache.xerces.*
CODE

AppDynamics is advising the to use just -Datlassian.org.osgi.framework.bootdelegation ... instead of -Datlassian.org.osgi.framework.bootdelegation.extra ...
but this can come with negative side effects, i.e. in Confluence when using inline comments (https://confluence.atlassian.com/confkb/when-creating-an-inline-comment-the-message-could-not-save-the-comment-appears-911933929.html). 
This is the article describing the .extra at the end of -Datlassian.org.osgi.framework.bootdelegation https://confluence.atlassian.com/jirakb/adding-classes-to-osgi-boot-class-loader-bootdelegation-973483231.html


If the issue still remains, please contact our support here: Customer Support