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

Docker based setup won't start with slf4j 2.x

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Critical
    • None
    • 14.8-rc-1
    • Test Framework
    • Unknown
    • N/A
    • N/A

    Description

      The root cause seems to be

      java.util.ServiceConfigurationError: org.slf4j.spi.SLF4JServiceProvider: Provider org.eclipse.jetty.logging.JettyLoggingServiceProvider not found
      	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:589)
      	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1212)
      	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1221)
      	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265)
      	at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300)
      	at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385)
      	at org.slf4j.LoggerFactory.findServiceProviders(LoggerFactory.java:104)
      	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:147)
      	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:139)
      	at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:421)
      	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:407)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:356)
      	at org.xwiki.container.servlet.XWikiServletContextListener.<clinit>(XWikiServletContextListener.java:50)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      	at org.eclipse.jetty.server.handler.ContextHandler$StaticContext.createInstance(ContextHandler.java:2891)
      	at org.eclipse.jetty.servlet.ServletContextHandler$Context.createInstance(ServletContextHandler.java:1292)
      	at org.eclipse.jetty.servlet.ServletContextHandler$Context.createInstance(ServletContextHandler.java:1301)
      	at org.eclipse.jetty.servlet.BaseHolder.createInstance(BaseHolder.java:204)
      	at org.eclipse.jetty.servlet.ListenerHolder.createInstance(ListenerHolder.java:100)
      	at org.eclipse.jetty.servlet.ListenerHolder.doStart(ListenerHolder.java:89)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
      	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:382)
      	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1304)
      	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:895)
      	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:306)
      	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:532)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
      	at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:40)
      	at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:183)
      	at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:516)
      	at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:151)
      	at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:186)
      	at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:442)
      	at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:58)
      	at org.eclipse.jetty.util.Scanner$DiscreteListener.pathAdded(Scanner.java:282)
      	at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:836)
      	at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:802)
      	at org.eclipse.jetty.util.Scanner.scan(Scanner.java:709)
      	at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:597)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)
      	at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:158)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
      	at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:605)
      	at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:246)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
      	at org.eclipse.jetty.server.Server.start(Server.java:469)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
      	at org.eclipse.jetty.server.Server.doStart(Server.java:414)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
      	at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$4(XmlConfiguration.java:1872)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1810)
      

      Which seems to indicate that the org.eclipse.jetty.logging.JettyLoggingServiceProvider and the Jetty provided jetty-slf4j-impl JAR are not properly isolated (which does not match the module configuration that can be found on the docker image).

      XWiki does work fine with a local Jetty 10.0.11 install.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: