Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7987

Failed to deploy on JBoss AS7 with SLF4J class cast exception

    XMLWordPrintable

Details

    • Unknown

    Description

      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
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: