Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-11434

Confluence 2.8 incompatibility with weblogic 8.1 and Websphere 6

      It appears the mechanism by which we locate an MBean server in Confluence 2.8 at the moment is not compatible with weblogic 8.1 (which apparently has a proprietary helper for such a task).

      This results in a error like this in the logs:

      com.atlassian.config.bootstrap.BootstrappedContextLoaderListener failed: 
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exporter' defined in class path resource [jmxContext.xml]: 
      Invocation of init method failed; nested exception is org.springframework.jmx.MBeanServerNotFoundException: Unable to locate an MBeanServer instance
      

      This appeared in a customer's upgrade logs.

      This is not an issue in Weblogic 9.x.

            [CONFSERVER-11434] Confluence 2.8 incompatibility with weblogic 8.1 and Websphere 6

            Hi All

            As we no longer support Confluence 2.8, weblogic or websphere I'm going to close this issue out as obsolete.

            Regards
            Steve Haffenden
            Confluence Bugmaster
            Atlassian

            Steve Haffenden (Inactive) added a comment - Hi All As we no longer support Confluence 2.8, weblogic or websphere I'm going to close this issue out as obsolete. Regards Steve Haffenden Confluence Bugmaster Atlassian

            Hi,

            I have the same problem in websphere XD 6.0.2.0.

            regards,
            Pierre

            [12/4/08 13:20:22:264 MET] 00000027 ContextLoader E org.springframework.web.context.ContextLoader initWebApplicationContext Context initialization failed
                                             org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exporter' defined in class path resource [jmxContext.xml]: Invocation of init method failed; nested exception is org.springframework.jmx.MBeanServerNotFoundException: Unable to locate an MBeanServer instance
            Caused by: org.springframework.jmx.MBeanServerNotFoundException: Unable to locate an MBeanServer instance
            	at org.springframework.jmx.support.JmxUtils.locateMBeanServer(JmxUtils.java:118)
            	at org.springframework.jmx.support.JmxUtils.locateMBeanServer(JmxUtils.java:77)
            	at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:461)
            	at org.springframework.jmx.export.MBeanExporter.afterPropertiesSet(MBeanExporter.java:388)
            	at com.atlassian.confluence.jmx.MBeanExporterWithUnregisterImpl.afterPropertiesSet(MBeanExporterWithUnregisterImpl.java:33)
            	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
            	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
            	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
            	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
            	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
            	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
            	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
            	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
            	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
            	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
            
            

            Pierre LASSIALE added a comment - Hi, I have the same problem in websphere XD 6.0.2.0. regards, Pierre [12/4/08 13:20:22:264 MET] 00000027 ContextLoader E org.springframework.web.context.ContextLoader initWebApplicationContext Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exporter' defined in class path resource [jmxContext.xml]: Invocation of init method failed; nested exception is org.springframework.jmx.MBeanServerNotFoundException: Unable to locate an MBeanServer instance Caused by: org.springframework.jmx.MBeanServerNotFoundException: Unable to locate an MBeanServer instance at org.springframework.jmx.support.JmxUtils.locateMBeanServer(JmxUtils.java:118) at org.springframework.jmx.support.JmxUtils.locateMBeanServer(JmxUtils.java:77) at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:461) at org.springframework.jmx.export.MBeanExporter.afterPropertiesSet(MBeanExporter.java:388) at com.atlassian.confluence.jmx.MBeanExporterWithUnregisterImpl.afterPropertiesSet(MBeanExporterWithUnregisterImpl.java:33) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)

            Hi, a similar problem with the JMX support of Confluence-2.8.0 also occurs on Websphere 6.1.0.9.
            The error message is a bit different, but applying the very same workaround mentioned above solves it.

            The error on Websphere 6.1.0.9:

            [5/17/08 16:23:18:469 CEST] 00000017 WebApp        E   Exception caught while initializing context
            org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exporter' defined in class path resource [jmxContext.xml]: Invocation of init method failed; nested exception is java.lang.VerifyError: java/lang/man
            agement/ManagementFactory.getPlatformMBeanServer()Ljavax/management/MBeanServer;
            Caused by: java.lang.VerifyError: java/lang/management/ManagementFactory.getPlatformMBeanServer()Ljavax/management/MBeanServer;
                    at org.springframework.jmx.support.JmxUtils.locateMBeanServer(JmxUtils.java:109)
                    at org.springframework.jmx.support.JmxUtils.locateMBeanServer(JmxUtils.java:77)
                    at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:461)
                    at org.springframework.jmx.export.MBeanExporter.afterPropertiesSet(MBeanExporter.java:388)
                    at com.atlassian.confluence.jmx.MBeanExporterWithUnregisterImpl.afterPropertiesSet(MBeanExporterWithUnregisterImpl.java:33)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
                    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
                    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
                    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
                    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
                    at com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32)
                    at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:637)
                    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:295)
                    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:285)
                    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
                    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
                    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
                    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608)
                    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
                    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
                    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1312)
                    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129)
                    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
                    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
                    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:965)
                    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2131)
                    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:341)
                    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
            
            

            Stefan Prange added a comment - Hi, a similar problem with the JMX support of Confluence-2.8.0 also occurs on Websphere 6.1.0.9. The error message is a bit different, but applying the very same workaround mentioned above solves it. The error on Websphere 6.1.0.9: [5/17/08 16:23:18:469 CEST] 00000017 WebApp E Exception caught while initializing context org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exporter' defined in class path resource [jmxContext.xml]: Invocation of init method failed; nested exception is java.lang.VerifyError: java/lang/man agement/ManagementFactory.getPlatformMBeanServer()Ljavax/management/MBeanServer; Caused by: java.lang.VerifyError: java/lang/management/ManagementFactory.getPlatformMBeanServer()Ljavax/management/MBeanServer; at org.springframework.jmx.support.JmxUtils.locateMBeanServer(JmxUtils.java:109) at org.springframework.jmx.support.JmxUtils.locateMBeanServer(JmxUtils.java:77) at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:461) at org.springframework.jmx.export.MBeanExporter.afterPropertiesSet(MBeanExporter.java:388) at com.atlassian.confluence.jmx.MBeanExporterWithUnregisterImpl.afterPropertiesSet(MBeanExporterWithUnregisterImpl.java:33) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32) at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:637) at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:295) at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:285) at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88) at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157) at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655) at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608) at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335) at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1312) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:965) at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2131) at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:341) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)

            Workaround instructions

            If you are not interested in JMX support, you can get around this issue with these instructions:

            1. Shutdown Confluence
            2. Copy the attached jmxContext.xml to your confluence/WEB-INF/classes directory
            3. Startup Confluence

            This patched xml file effectively disables JMX in Confluence and will prevent this error from occuring.

            Cheers,
            Dave

            dave (Inactive) added a comment - Workaround instructions If you are not interested in JMX support, you can get around this issue with these instructions: Shutdown Confluence Copy the attached jmxContext.xml to your confluence/WEB-INF/classes directory Startup Confluence This patched xml file effectively disables JMX in Confluence and will prevent this error from occuring. Cheers, Dave

              shaffenden Steve Haffenden (Inactive)
              dave@atlassian.com dave (Inactive)
              Affected customers:
              4 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: