org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooServerManager' defined in URL [bundle://31.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.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]])

Atlassian JIRA | Alex "Push It Upstream" Courtis | 1 year ago
  1. 0

    In a case where db connection details need to be retrieved from LDAP: {noformat} Database URL : jdbc:oracle:thin:@ldap://mycompany.com:4042/cn=OracleContext,dc=mycompany,dc=com/OUR_JIRA {noformat} JIRA will crash with ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory when loading plugins: {noformat} 2011-11-16 21:09:32,967 Spring executor 4 ERROR [plugin.osgi.factory.OsgiPlugin] Unable to start the Spring context for plugin com.atlassian.jira.plugin.ext.bamboo org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooServerManager' defined in URL [bundle://31.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.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) 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:619) Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248) ... 21 more Caused by: com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.findPropertyEntry(OFBizPropertySet.java:231) at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.exists(OFBizPropertySet.java:118) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.getConfigVersionNumber(BambooServerManagerImpl.java:606) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.checkUpgradeConfig(BambooServerManagerImpl.java:588) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.<init>(BambooServerManagerImpl.java:100) 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) ... 23 more {noformat} h4. Workaround # Modify {{$JIRA_HOME/dbconfig.xml}} file to not use LDAP, but directly connect to the database server using the dedicated user. # Restart JIRA to pick up the changes

    Atlassian JIRA | 5 years ago | Bogdan Dziedzic [Atlassian]
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooServerManager' defined in URL [bundle://31.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.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]])
  2. 0

    Cloning from: https://ecosystem.atlassian.net/browse/PLUG-1079 as this seems to be JIRA specific. In a case where db connection details need to be retrieved from LDAP: {noformat} Database URL : jdbc:oracle:thin:@ldap://mycompany.com:4042/cn=OracleContext,dc=mycompany,dc=com/OUR_JIRA {noformat} JIRA will crash with ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory when loading plugins: {noformat} 2011-11-16 21:09:32,967 Spring executor 4 ERROR [plugin.osgi.factory.OsgiPlugin] Unable to start the Spring context for plugin com.atlassian.jira.plugin.ext.bamboo org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooServerManager' defined in URL [bundle://31.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.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) 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:619) Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248) ... 21 more Caused by: com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.findPropertyEntry(OFBizPropertySet.java:231) at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.exists(OFBizPropertySet.java:118) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.getConfigVersionNumber(BambooServerManagerImpl.java:606) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.checkUpgradeConfig(BambooServerManagerImpl.java:588) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.<init>(BambooServerManagerImpl.java:100) 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) ... 23 more {noformat}

    Atlassian JIRA | 1 year ago | Alex "Push It Upstream" Courtis
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooServerManager' defined in URL [bundle://31.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.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]])
  3. 0

    Cloning from: https://ecosystem.atlassian.net/browse/PLUG-1079 as this seems to be JIRA specific. In a case where db connection details need to be retrieved from LDAP: {noformat} Database URL : jdbc:oracle:thin:@ldap://mycompany.com:4042/cn=OracleContext,dc=mycompany,dc=com/OUR_JIRA {noformat} JIRA will crash with ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory when loading plugins: {noformat} 2011-11-16 21:09:32,967 Spring executor 4 ERROR [plugin.osgi.factory.OsgiPlugin] Unable to start the Spring context for plugin com.atlassian.jira.plugin.ext.bamboo org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooServerManager' defined in URL [bundle://31.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.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) 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:619) Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248) ... 21 more Caused by: com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.findPropertyEntry(OFBizPropertySet.java:231) at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.exists(OFBizPropertySet.java:118) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.getConfigVersionNumber(BambooServerManagerImpl.java:606) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.checkUpgradeConfig(BambooServerManagerImpl.java:588) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.<init>(BambooServerManagerImpl.java:100) 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) ... 23 more {noformat}

    Atlassian JIRA | 1 year ago | Alex "Push It Upstream" Courtis
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooServerManager' defined in URL [bundle://31.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.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    In a case where db connection details need to be retrieved from LDAP: {noformat} Database URL : jdbc:oracle:thin:@ldap://mycompany.com:4042/cn=OracleContext,dc=mycompany,dc=com/OUR_JIRA {noformat} JIRA will crash with ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory when loading plugins: {noformat} 2011-11-16 21:09:32,967 Spring executor 4 ERROR [plugin.osgi.factory.OsgiPlugin] Unable to start the Spring context for plugin com.atlassian.jira.plugin.ext.bamboo org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooServerManager' defined in URL [bundle://31.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.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) 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:619) Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248) ... 21 more Caused by: com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]]) at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.findPropertyEntry(OFBizPropertySet.java:231) at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.exists(OFBizPropertySet.java:118) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.getConfigVersionNumber(BambooServerManagerImpl.java:606) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.checkUpgradeConfig(BambooServerManagerImpl.java:588) at com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.<init>(BambooServerManagerImpl.java:100) 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) ... 23 more {noformat} h4. Workaround # Modify {{$JIRA_HOME/dbconfig.xml}} file to not use LDAP, but directly connect to the database server using the dedicated user. # Restart JIRA to pick up the changes

    Atlassian JIRA | 5 years ago | Bogdan Dziedzic [Atlassian]
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooServerManager' defined in URL [bundle://31.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.jira.plugin.ext.bamboo.BambooServerManagerImpl]: Constructor threw exception; nested exception is com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]])
  6. 0

    I installed JIRA Pro 3.0beta on Jetty and it runs fine, except it can't run with Confluence 1.2.2 as another webapp on the same Jetty 4.2.22 instance (http://jira.atlassian.com/browse/JRA-4802). So I have to switch back to Tomcat. Did everything according to install doc. Tried to bring it up the first time to run setup. Got the following exception. You can see "pg74.215.jdbc3.jar" is indeed loaded and I checked "org.postgresql.Driver" is there in it. But somehow this driver failed to load. The same database and driver runs perfectly for a Confluence 1.2.2 installation on the same Tomcat instance. What's wrong? Please help. Thanks! ... 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/osworkflow-17Aug2004.jar to /opt/jira/deployed-war/WEB-INF/lib/osworkflow-17Aug2004.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/pg74.215.jdbc3.jar to /opt/jira/deployed-war/WEB-INF/lib/pg74.215.jdbc3.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/picocontainer-1.0.jar to /opt/jira/deployed-war/WEB-INF/lib/picocontainer-1.0.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/propertyset-1.3.jar to /opt/jira/deployed-war/WEB-INF/lib/propertyset-1.3.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/quartz-1.0.7.jar to /opt/jira/deployed-war/WEB-INF/lib/quartz-1.0.7.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/seraph-0.7.4.jar to /opt/jira/deployed-war/WEB-INF/lib/seraph-0.7.4.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/sitemesh-2.0.2-020204dev.jar to /opt/jira/deployed-war/WEB-INF/lib/sitemesh-2.0.2-020204dev.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/statcvs-20040721-patched.jar to /opt/jira/deployed-war/WEB-INF/lib/statcvs-20040721-patched.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/velocity-1.4.jar to /opt/jira/deployed-war/WEB-INF/lib/velocity-1.4.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/webwork-1.4.jar to /opt/jira/deployed-war/WEB-INF/lib/webwork-1.4.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/webwork-pell-multipartrequest1.30rc1.jar to /opt/jira/deployed-war/WEB-INF/lib/webwork-pell-multipartrequest1.30rc1.jar 2004-10-09 17:25:13 WebappLoader[/jira]: Deploy JAR /WEB-INF/lib/xmlrpc-1.2-b1.jar to /opt/jira/deployed-war/WEB-INF/lib/xmlrpc-1.2-b1.jar 2004-10-09 17:25:13 PersistentManager[/jira]: Seeding random number generator class java.security.SecureRandom 2004-10-09 17:25:13 PersistentManager[/jira]: Seeding of random number generator has been completed 2004-10-09 17:25:13 PersistentManager[/jira]: No Store configured, persistence disabled 2004-10-09 17:25:16 StandardContext[/jira]: Exception sending context initialized event to listener instance of class com.atlassian.jira.upgrade.ConsistencyLauncher com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (Cannot load JDBC driver class 'org.postgresql.Driver') at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.getKeys(OFBizPropertySet.java:100) at com.opensymphony.module.propertyset.AbstractPropertySet.getKeys(AbstractPropertySet.java:292) at com.opensymphony.module.propertyset.PropertySetCloner.cloneProperties(PropertySetCloner.java:114) at com.opensymphony.module.propertyset.PropertySetManager.clone(PropertySetManager.java:61)

    Atlassian JIRA | 1 decade ago | Jun Yang
    com.opensymphony.module.propertyset.PropertyImplementationException: Unable to esablish a connection with the database. (Cannot load JDBC driver class 'org.postgresql.Driver')

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.opensymphony.module.propertyset.PropertyImplementationException

      Unable to esablish a connection with the database. (JNDI Package failure javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.jira.plugin.ext.bamboo]])

      at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.findPropertyEntry()
    2. com.opensymphony.module
      OFBizPropertySet.exists
      1. com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.findPropertyEntry(OFBizPropertySet.java:231)
      2. com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.exists(OFBizPropertySet.java:118)
      2 frames
    3. com.atlassian.jira
      BambooServerManagerImpl.<init>
      1. com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.getConfigVersionNumber(BambooServerManagerImpl.java:606)
      2. com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.checkUpgradeConfig(BambooServerManagerImpl.java:588)
      3. com.atlassian.jira.plugin.ext.bamboo.BambooServerManagerImpl.<init>(BambooServerManagerImpl.java:100)
      3 frames
    4. 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
    5. Spring Beans
      AbstractAutowireCapableBeanFactory$1.run
      1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
      2. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
      3. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
      7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      7 frames
    6. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    7. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      4. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      7. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
      7 frames
    8. Spring Context
      AbstractApplicationContext.finishBeanFactoryInitialization
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
      1 frame
    9. Spring OSGi Core
      AbstractDelegatedExecutionApplicationContext.completeRefresh
      1. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
      2. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
      3. org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
      4. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
      4 frames
    10. org.springframework.osgi
      DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run
      1. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
      1 frame
    11. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:619)
      3 frames