java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory

Atlassian JIRA | Kah Loun Foong [Atlassian] | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    If JIRA does not have the permission to read the file {{crowd.properties}}, it will have the following error: {noformat} 2012-05-07 14:05:08,757 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /mnt/store/atlassian/jira/home/plugins/.bundled-plugins/workflow-designer-plugin-2.5.4.jar (1333044618000) created 2012-05-07 14:05:13,884 main INFO [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [crowd-rest-plugin, com.atlassian.gadgets.dashboard, com.atlassian.activeobjects.activeobjects-plugin, com.atlassian.jira.jira-project-config-plugin, com.atlassian.gadgets.embedded, com.atlassian.jira.jira-issue-link-applinks-common-plugin, com.atlassian.streams.streams-jira-plugin, com.atlassian.jira.plugin.ext.bamboo, com.atlassian.gadgets.opensocial, com.atlassian.jira.plugins.jira-importers-plugin, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.sal.jira, com.atlassian.streams.core, crowd-rest-application-management, com.atlassian.jira.jira-view-issue-plugin, com.atlassian.oauth.serviceprovider, com.atlassian.upm.atlassian-universal-plugin-manager-plugin, com.atlassian.jira.plugins.jira-workflow-designer, com.atlassian.streams.streams-thirdparty-plugin, com.atlassian.gadgets.publisher, com.atlassian.jira.jira-issue-link-confluence-plugin, com.atlassian.jira.rest, com.atlassian.crowd.embedded.admin, com.atlassian.gadgets.directory, com.atlassian.streams.actions, com.atlassian.soy.soy-template-plugin, tac.jira.languages.ja_JP, com.atlassian.gadgets.oauth.serviceprovider, com.atlassian.streams, com.atlassian.applinks.applinks-plugin, com.atlassian.jira.jira-issue-link-remote-jira-plugin, com.atlassian.oauth.admin, com.atlassian.jira.gadgets, com.atlassian.support.stp, com.atlassian.jirafisheyeplugin], 60 seconds remaining 2012-05-07 14:05:13,926 Spring executor 2 ERROR [crowd.service.client.ClientResourceLocator] java.net.MalformedURLException at java.net.URL.<init>(URL.java:601) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) ... 2012-05-07 14:05:14,227 Spring executor 2 ERROR [plugin.osgi.factory.OsgiPlugin] Unable to start the Spring context for plugin com.atlassian.sal.jira org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationController' defined in URL [bundle://67.0:0/META-INF/spring/atlassian-plugins-components.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.sal.core.auth.SeraphAuthenticationController]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) ... Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.sal.core.auth.SeraphAuthenticationController]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError ... Caused by: java.lang.ExceptionInInitializerError ... Caused by: java.lang.IllegalArgumentException: org.apache.commons.httpclient.URIException: URI-Reference required ... Caused by: org.apache.commons.httpclient.URIException: URI-Reference required ... 2012-05-07 14:07:19,281 main ERROR [atlassian.jira.startup.LauncherContextListener] Unable to start JIRA. java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory at com.atlassian.jira.security.login.SSOSeraphAuthenticator.<init>(SSOSeraphAuthenticator.java:26) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) {noformat} It should have the 'Permission denied' error when JIRA failed to read the file.

    Atlassian JIRA | 5 years ago | Kah Loun Foong [Atlassian]
    java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory
  2. 0

    If JIRA does not have the permission to read the file {{crowd.properties}}, it will have the following error: {noformat} 2012-05-07 14:05:08,757 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /mnt/store/atlassian/jira/home/plugins/.bundled-plugins/workflow-designer-plugin-2.5.4.jar (1333044618000) created 2012-05-07 14:05:13,884 main INFO [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [crowd-rest-plugin, com.atlassian.gadgets.dashboard, com.atlassian.activeobjects.activeobjects-plugin, com.atlassian.jira.jira-project-config-plugin, com.atlassian.gadgets.embedded, com.atlassian.jira.jira-issue-link-applinks-common-plugin, com.atlassian.streams.streams-jira-plugin, com.atlassian.jira.plugin.ext.bamboo, com.atlassian.gadgets.opensocial, com.atlassian.jira.plugins.jira-importers-plugin, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.sal.jira, com.atlassian.streams.core, crowd-rest-application-management, com.atlassian.jira.jira-view-issue-plugin, com.atlassian.oauth.serviceprovider, com.atlassian.upm.atlassian-universal-plugin-manager-plugin, com.atlassian.jira.plugins.jira-workflow-designer, com.atlassian.streams.streams-thirdparty-plugin, com.atlassian.gadgets.publisher, com.atlassian.jira.jira-issue-link-confluence-plugin, com.atlassian.jira.rest, com.atlassian.crowd.embedded.admin, com.atlassian.gadgets.directory, com.atlassian.streams.actions, com.atlassian.soy.soy-template-plugin, tac.jira.languages.ja_JP, com.atlassian.gadgets.oauth.serviceprovider, com.atlassian.streams, com.atlassian.applinks.applinks-plugin, com.atlassian.jira.jira-issue-link-remote-jira-plugin, com.atlassian.oauth.admin, com.atlassian.jira.gadgets, com.atlassian.support.stp, com.atlassian.jirafisheyeplugin], 60 seconds remaining 2012-05-07 14:05:13,926 Spring executor 2 ERROR [crowd.service.client.ClientResourceLocator] java.net.MalformedURLException at java.net.URL.<init>(URL.java:601) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) ... 2012-05-07 14:05:14,227 Spring executor 2 ERROR [plugin.osgi.factory.OsgiPlugin] Unable to start the Spring context for plugin com.atlassian.sal.jira org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationController' defined in URL [bundle://67.0:0/META-INF/spring/atlassian-plugins-components.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.sal.core.auth.SeraphAuthenticationController]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) ... Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.sal.core.auth.SeraphAuthenticationController]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError ... Caused by: java.lang.ExceptionInInitializerError ... Caused by: java.lang.IllegalArgumentException: org.apache.commons.httpclient.URIException: URI-Reference required ... Caused by: org.apache.commons.httpclient.URIException: URI-Reference required ... 2012-05-07 14:07:19,281 main ERROR [atlassian.jira.startup.LauncherContextListener] Unable to start JIRA. java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory at com.atlassian.jira.security.login.SSOSeraphAuthenticator.<init>(SSOSeraphAuthenticator.java:26) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) {noformat} It should have the 'Permission denied' error when JIRA failed to read the file.

    Atlassian JIRA | 5 years ago | Kah Loun Foong [Atlassian]
    java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory

      at com.atlassian.jira.security.login.SSOSeraphAuthenticator.<init>()
    2. com.atlassian.jira
      SSOSeraphAuthenticator.<init>
      1. com.atlassian.jira.security.login.SSOSeraphAuthenticator.<init>(SSOSeraphAuthenticator.java:26)
      1 frame
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames