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

XWiki 13.7 WAR does not work in 12.10.9 jetty+hsqldb setup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Won't Fix
    • Affects Version/s: 13.7-rc-1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Windows 10 Pro 64 bit, Edge 93, using a local instance of XWiki 13.7 on Jetty 9.4.29, Java 11.0.12+8-LTS-237
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      STEPS TO REPRODUCE

      1. Create an older instance of XWiki (e.g. 11.10.13 or 12.10.9) on Jetty
      2. Close the instance
      3. Go to the newer instance (e.g. 13.7) and copy/cut the
        [...]webapps\xwiki

        folder and replace it (first delete the old one) in the same location on the older version

      1. Start XWiki

      EXPECTED RESULTS

      The (Jetty) server is started and the instance can be accessed at:

      http://localhost:8080/xwiki/bin/view/Main/

      ACTUAL RESULTS

      The server doesn't start. Here is the full log with the error displayed on console:

      Starting Jetty on port 1219, please wait...
      2021-09-09 14:16:47.822:INFO::main: Logging initialized @1577ms to org.eclipse.jetty.util.log.StdErrLog
      2021-09-09 14:16:48.198:INFO:oejs.Server:main: jetty-9.4.29.v20200521; built: 2020-05-21T17:20:40.598Z; git: 77c232aed8a45c818fd27232278d9f95a021095e; jvm 11.0.12+8-LTS-237
      2021-09-09 14:16:48.225:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:///C:/ILIE%20LUCRU/XWIKI%2012.10.9/xwiki-platform-distribution-flavor-jetty-hsqldb-12.10.9%20STD/jetty/contexts/] at interval 1
      2021-09-09 14:17:00.073:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
      2021-09-09 14:17:00.073:INFO:oejs.session:main: No SessionScavenger set, using defaults
      2021-09-09 14:17:00.076:INFO:oejs.session:main: node0 Scavenging every 600000ms
      2021-09-09 14:17:01.318:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@448c8166{XWiki,/xwiki,file:///C:/ILIE%20LUCRU/XWIKI%2012.10.9/xwiki-platform-distribution-flavor-jetty-hsqldb-12.10.9%20STD/webapps/xwiki/,UNAVAILABLE}{C:\ILIE LUCRU\XWIKI 12.10.9\xwiki-platform-distribution-flavor-jetty-hsqldb-12.10.9 STD\jetty/../webapps/xwiki}
      java.lang.NoClassDefFoundError: javax/websocket/server/ServerEndpointConfig$Configurator
              at java.base/java.lang.ClassLoader.defineClass1(Native Method)
              at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
              at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
              at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:550)
              at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458)
              at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451)
              at org.eclipse.jetty.webapp.WebAppClassLoader.foundClass(WebAppClassLoader.java:649)
              at org.eclipse.jetty.webapp.WebAppClassLoader.loadAsResource(WebAppClassLoader.java:622)
              at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:534)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
              at org.xwiki.component.annotation.ComponentAnnotationLoader.getComponentsDescriptors(ComponentAnnotationLoader.java:161)
              at org.xwiki.component.annotation.ComponentAnnotationLoader.register(ComponentAnnotationLoader.java:216)
              at org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:138)
              at org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:120)
              at org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:156)
              at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:62)
              at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1002)
              at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:553)
              at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:931)
              at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:764)
              at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:360)
              at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1445)
              at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1409)
              at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:844)
              at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:275)
              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
              at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:46)
              at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
              at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:513)
              at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:154)
              at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:173)
              at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:447)
              at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:66)
              at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:784)
              at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:753)
              at org.eclipse.jetty.util.Scanner.scan(Scanner.java:641)
              at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:540)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
              at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:146)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
              at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:599)
              at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:249)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
              at org.eclipse.jetty.server.Server.start(Server.java:408)
              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
              at org.eclipse.jetty.server.Server.doStart(Server.java:372)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
              at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$1(XmlConfiguration.java:1929)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1878)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.eclipse.jetty.start.Main.invokeMain(Main.java:218)
              at org.eclipse.jetty.start.Main.start(Main.java:491)
              at org.eclipse.jetty.start.Main.main(Main.java:77)
      Caused by:
      java.lang.ClassNotFoundException: javax.websocket.server.ServerEndpointConfig$Configurator
              at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
              at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:543)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
              at java.base/java.lang.ClassLoader.defineClass1(Native Method)
              at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
              at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
              at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:550)
              at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458)
              at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451)
              at org.eclipse.jetty.webapp.WebAppClassLoader.foundClass(WebAppClassLoader.java:649)
              at org.eclipse.jetty.webapp.WebAppClassLoader.loadAsResource(WebAppClassLoader.java:622)
              at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:534)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
              at org.xwiki.component.annotation.ComponentAnnotationLoader.getComponentsDescriptors(ComponentAnnotationLoader.java:161)
              at org.xwiki.component.annotation.ComponentAnnotationLoader.register(ComponentAnnotationLoader.java:216)
              at org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:138)
              at org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:120)
              at org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:156)
              at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:62)
              at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1002)
              at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:553)
              at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:931)
              at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:764)
              at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:360)
              at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1445)
              at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1409)
              at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:844)
              at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:275)
              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
              at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:46)
              at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
              at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:513)
              at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:154)
              at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:173)
              at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:447)
              at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:66)
              at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:784)
              at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:753)
              at org.eclipse.jetty.util.Scanner.scan(Scanner.java:641)
              at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:540)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
              at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:146)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
              at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:599)
              at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:249)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
              at org.eclipse.jetty.server.Server.start(Server.java:408)
              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
              at org.eclipse.jetty.server.Server.doStart(Server.java:372)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
              at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$1(XmlConfiguration.java:1929)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1878)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.eclipse.jetty.start.Main.invokeMain(Main.java:218)
              at org.eclipse.jetty.start.Main.start(Main.java:491)
              at org.eclipse.jetty.start.Main.main(Main.java:77)
      2021-09-09 14:17:01.413:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@7d3fb0ef{XWiki Root Redirector,/,file:///C:/ILIE%20LUCRU/XWIKI%2012.10.9/xwiki-platform-distribution-flavor-jetty-hsqldb-12.10.9%20STD/webapps/root/,AVAILABLE}{C:\ILIE LUCRU\XWIKI 12.10.9\xwiki-platform-distribution-flavor-jetty-hsqldb-12.10.9 STD\jetty/../webapps/root}
      2021-09-09 14:17:01.418:INFO:oejs.RequestLogWriter:main: Opened C:\ILIE LUCRU\XWIKI 12.10.9\xwiki-platform-distribution-flavor-jetty-hsqldb-12.10.9 STD\data\logs\2021_09_09.request.log
      2021-09-09 14:17:01.442:INFO:oejs.AbstractConnector:main: Started ServerConnector@1b2abca6{HTTP/1.1, (http/1.1)}{0.0.0.0:1219}
      2021-09-09 14:17:01.444:INFO:oejs.Server:main: Started @15200ms
      2021-09-09 14:17:01.448:INFO:oxtjl.NotifyListener:main: ----------------------------------
      2021-09-09 14:17:01.464:INFO:oxtjl.NotifyListener:main: Server started, you can now open http://ILIE-ASUS-ROG.mshome.net:1219/ in your browser to access your wiki.

      At this point, when accessing the instance from the browser, a "503 - Service Unavailable" error is encountered.

      The issue could not be reproduced on Tomcat and when upgrading to XWiki 13.6 on Jetty.

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: