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.

Solution

By adding the following atlassian.org.osgi.framework.bootdelegation 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=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.*

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