org.xwiki.container.servlet.XWikiServletContextListener: java.lang.RuntimeException: Failed to find the Observation Manager component

XWiki.org JIRA | Vincent Massol | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    {noformat} 08:38:33,829 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/xwiki]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class org.xwiki.container.servlet.XWikiServletContextListener: java.lang.RuntimeException: Failed to find the Observation Manager component at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:101) [xwiki-platform-container-servlet-4.2-20120626.042628-99.jar:] at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_33] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_33] at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33] Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.observation.internal.DefaultObservationManager] identifier by [role = [interface org.xwiki.observation.ObservationManager] hint = [default]] at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:316) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:143) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:99) [xwiki-platform-container-servlet-4.2-20120626.042628-99.jar:] ... 8 more Caused by: org.xwiki.component.phase.InitializationException: Failed to lookup Event Listeners at org.xwiki.observation.internal.DefaultObservationManager.initialize(DefaultObservationManager.java:139) [xwiki-commons-observation-local-4.2-20120625.154746-42.jar:] at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:291) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:314) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] ... 10 more Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [role = [interface org.xwiki.observation.EventListener] hint = [LogbackEventGenerator]] at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:175) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:157) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] at org.xwiki.component.internal.multi.DelegateComponentManager.getInstanceList(DelegateComponentManager.java:89) [xwiki-commons-component-api-4.2-20120625.154600-43.jar:] at org.xwiki.observation.internal.DefaultObservationManager.initialize(DefaultObservationManager.java:135) [xwiki-commons-observation-local-4.2-20120625.154746-42.jar:] ... 14 more Caused by: java.lang.ClassCastException: org.slf4j.impl.Slf4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext at org.xwiki.logging.logback.internal.LogbackUtils.getRootLogger(LogbackUtils.java:48) [xwiki-commons-logging-logback-4.2-20120626.083745-42.jar:] at org.xwiki.logging.logback.internal.LogbackEventGenerator.initialize(LogbackEventGenerator.java:97) [xwiki-commons-logging-logback-4.2-20120626.083745-42.jar:] at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:291) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:173) [xwiki-commons-component-default-4.2-20120625.154634-43.jar:] ... 17 more {noformat}

    XWiki.org JIRA | 5 years ago | Vincent Massol
    org.xwiki.container.servlet.XWikiServletContextListener: java.lang.RuntimeException: Failed to find the Observation Manager component

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.slf4j.impl.Slf4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext

      at org.xwiki.logging.logback.internal.LogbackUtils.getRootLogger()
    2. org.xwiki.logging
      LogbackEventGenerator.initialize
      1. org.xwiki.logging.logback.internal.LogbackUtils.getRootLogger(LogbackUtils.java:48)[xwiki-commons-logging-logback-4.2-20120626.083745-42.jar:]
      2. org.xwiki.logging.logback.internal.LogbackEventGenerator.initialize(LogbackEventGenerator.java:97)[xwiki-commons-logging-logback-4.2-20120626.083745-42.jar:]
      2 frames
    3. org.xwiki.component
      DelegateComponentManager.getInstanceList
      1. org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)[xwiki-commons-component-default-4.2-20120625.154634-43.jar:]
      2. org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:291)[xwiki-commons-component-default-4.2-20120625.154634-43.jar:]
      3. org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)[xwiki-commons-component-default-4.2-20120625.154634-43.jar:]
      4. org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:173)[xwiki-commons-component-default-4.2-20120625.154634-43.jar:]
      5. org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:157)[xwiki-commons-component-default-4.2-20120625.154634-43.jar:]
      6. org.xwiki.component.internal.multi.DelegateComponentManager.getInstanceList(DelegateComponentManager.java:89)[xwiki-commons-component-api-4.2-20120625.154600-43.jar:]
      6 frames
    4. org.xwiki.observation
      DefaultObservationManager.initialize
      1. org.xwiki.observation.internal.DefaultObservationManager.initialize(DefaultObservationManager.java:135)[xwiki-commons-observation-local-4.2-20120625.154746-42.jar:]
      1 frame
    5. org.xwiki.component
      EmbeddableComponentManager.getInstance
      1. org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)[xwiki-commons-component-default-4.2-20120625.154634-43.jar:]
      2. org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:291)[xwiki-commons-component-default-4.2-20120625.154634-43.jar:]
      3. org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)[xwiki-commons-component-default-4.2-20120625.154634-43.jar:]
      4. org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:314)[xwiki-commons-component-default-4.2-20120625.154634-43.jar:]
      5. org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:143)[xwiki-commons-component-default-4.2-20120625.154634-43.jar:]
      5 frames
    6. org.xwiki.container
      XWikiServletContextListener.contextInitialized
      1. org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:99)[xwiki-platform-container-servlet-4.2-20120626.042628-99.jar:]
      1 frame
    7. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)[jbossweb-7.0.13.Final.jar:]
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)[jbossweb-7.0.13.Final.jar:]
      2 frames
    8. JBoss Web
      WebDeploymentService.start
      1. org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
      1 frame
    9. JBoss Modular Service Container
      ServiceControllerImpl$StartTask.run
      1. org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      2. org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      2 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[classes.jar:1.6.0_33]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[classes.jar:1.6.0_33]
      3. java.lang.Thread.run(Thread.java:680)[classes.jar:1.6.0_33]
      3 frames