Uploaded image for project: 'Jasig CAS Client for Java'
  1. CASC-177

ClassNotFoundException in JIRA v5.0.1 startup with Jasig CAS Client for Java configured

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.3.0
    • Component/s: Java
    • Labels:
      None
    • Environment:
      Debian Linux, Java 1.6_22, JIRA v5.0.1#721-sha1:838c4a0, Jasig CAS Client for Java for JIRA v3.2.1 and v3.3.

      Description

      I am in the process of testing JIRA v5.0.1 in a staging environment which will eventually see us upgrading our production JIRA from version 4.4. For our SSO purposes we are actually running Jasig CAS server and thus we are using the CAS client integration for JIRA as provided.

      I have hit a snag in testing largely due to the fact that JIRA cannot start up. I have the stacktrace attached below:

      I have downloaded the latest source from Github and built it, but the same thing occurs.

      I suspect it is a class loading issue, but since I am not familiar with OSGI, etc, would appreciate some assistance in getting this to work again.

      Best regards

      -------------------------------------------------------
      2012-03-21 14:11:56,133 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/jira-rest-plugin-5.0.1.jar (1331825138000) created
      2012-03-21 14:11:56,144 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/jira-sal-plugin-5.0.1.jar (1331825152000) created
      2012-03-21 14:11:56,157 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/jira-share-plugin-5.0.1.jar (1331825206000) created
      2012-03-21 14:11:56,164 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/jira-soy-plugin-5.0.1.jar (1331825160000) created
      2012-03-21 14:11:56,210 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/jira-view-issue-plugin-5.0.1.jar (1331825162000) created
      2012-03-21 14:11:56,229 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/jira-welcome-plugin-1.1.6.jar (1331824330000) created
      2012-03-21 14:11:56,240 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/json-20070829-1.jar (1331824330000) created
      2012-03-21 14:11:56,248 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/nekohtml-1.9.12-1.jar (1331824330000) created
      2012-03-21 14:11:56,257 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/rome-1.0.jar (1331824330000) created
      2012-03-21 14:11:56,268 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/soy-template-plugin-1.0.0-m3.jar (1331824182000) created
      2012-03-21 14:11:56,286 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/stp-2.9.5.jar (1331824330000) created
      2012-03-21 14:11:56,636 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/streams-aggregator-plugin-5.1.0.jar (1331824332000) created
      2012-03-21 14:11:56,649 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/streams-api-5.1.0.jar (1331824330000) created
      2012-03-21 14:11:56,654 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/streams-core-plugin-5.1.0.jar (1331824332000) created
      2012-03-21 14:11:56,661 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/streams-inline-actions-plugin-5.1.0.jar (1331824332000) created
      2012-03-21 14:11:56,665 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/streams-jira-inline-actions-plugin-5.1.0.jar (1331824332000) created
      2012-03-21 14:11:56,866 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/streams-jira-plugin-5.1.0.jar (1331824330000) created
      2012-03-21 14:11:56,875 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/streams-spi-5.1.0.jar (1331824332000) created
      2012-03-21 14:11:56,883 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/streams-thirdparty-plugin-5.1.0.jar (1331824332000) created
      2012-03-21 14:11:56,899 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /home/jira/prod/plugins/.bundled-plugins/workflow-designer-plugin-2.5.4.jar (1331824330000) created
      2012-03-21 14:12:05,355 Spring executor 6 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://66.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.NoClassDefFoundError: com/opensymphony/user/EntityNotFoundException
      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)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
      at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
      at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      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.NoClassDefFoundError: com/opensymphony/user/EntityNotFoundException
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
      ... 20 more
      Caused by: java.lang.NoClassDefFoundError: com/opensymphony/user/EntityNotFoundException
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at com.opensymphony.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:99)
      at com.atlassian.seraph.config.SecurityConfigImpl.configureClass(SecurityConfigImpl.java:277)
      at com.atlassian.seraph.config.SecurityConfigImpl.configureAuthenticator(SecurityConfigImpl.java:215)
      at com.atlassian.seraph.config.SecurityConfigImpl.<init>(SecurityConfigImpl.java:159)
      at com.atlassian.seraph.config.SecurityConfigFactory.loadInstance(SecurityConfigFactory.java:56)
      at com.atlassian.seraph.config.SecurityConfigFactory.getInstance(SecurityConfigFactory.java:21)
      at com.atlassian.sal.core.auth.SeraphAuthenticationController.<init>(SeraphAuthenticationController.java:25)
      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)
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
      ... 22 more
      Caused by: java.lang.ClassNotFoundException: com.opensymphony.user.EntityNotFoundException
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      ... 36 more
      2012-03-21 14:12:05,362 Spring executor 6 ERROR [extender.internal.activator.ContextLoaderListener] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.sal.jira, config=osgibundle:/META-INF/spring/*.xml))
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationController' defined in URL [bundle://66.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.NoClassDefFoundError: com/opensymphony/user/EntityNotFoundException
      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)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
      at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
      at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      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.NoClassDefFoundError: com/opensymphony/user/EntityNotFoundException
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
      ... 20 more
      Caused by: java.lang.NoClassDefFoundError: com/opensymphony/user/EntityNotFoundException
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at com.opensymphony.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:99)
      at com.atlassian.seraph.config.SecurityConfigImpl.configureClass(SecurityConfigImpl.java:277)
      at com.atlassian.seraph.config.SecurityConfigImpl.configureAuthenticator(SecurityConfigImpl.java:215)
      at com.atlassian.seraph.config.SecurityConfigImpl.<init>(SecurityConfigImpl.java:159)
      at com.atlassian.seraph.config.SecurityConfigFactory.loadInstance(SecurityConfigFactory.java:56)
      at com.atlassian.seraph.config.SecurityConfigFactory.getInstance(SecurityConfigFactory.java:21)
      at com.atlassian.sal.core.auth.SeraphAuthenticationController.<init>(SeraphAuthenticationController.java:25)
      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)
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
      ... 22 more
      Caused by: java.lang.ClassNotFoundException: com.opensymphony.user.EntityNotFoundException
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      ... 36 more

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                battags ScottS
                Reporter:
                yzhengyu Zhengyu Yong
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: