Worked stated on branch https://github.com/xwiki/xwiki-platform/commits/XWIKI-21211
  Initial commit: https://github.com/xwiki/xwiki-platform/commit/3cd58fa246bea5221f992733cd9202b2b37ca6e6
  Problems remaining: * Duplicate container resource file warnings {noformat}2024-01-09 11:37:31.127:WARN :oejew.MetaData:main: Duplicate Container Resource file:///Users/vmassol/dev/xwiki/xwiki-platform/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-jetty-hsqldb/target/xwiki-platform-distribution-flavor-jetty-hsqldb-16.0.0-SNAPSHOT/jetty/lib/jetty-servlet-api-4.0.6.jar 2024-01-09 11:37:31.467:WARN :oejew.MetaData:main: Duplicate Container Resource file:///Users/vmassol/dev/xwiki/xwiki-platform/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-jetty-hsqldb/target/xwiki-platform-distribution-flavor-jetty-hsqldb-16.0.0-SNAPSHOT/jetty/lib/jetty-servlet-api-4.0.6.jar {noformat} * Logging config error {noformat}SLF4J(E): A service provider failed to instantiate: org.slf4j.spi.SLF4JServiceProvider: Provider org.eclipse.jetty.logging.JettyLoggingServiceProvider not found{noformat} * NPE stack trace on the home page when not logged in. Probably caused by a null header set at https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/XWikiFilter.java#L103C13-L103C102 (not related to jetty 12 but the jetty code has changed 6 months ago to show a stack trace when this happens, see https://github.com/jetty/jetty.project/commit/660ba4bbe5d627554c9ce75803acd994538e1a80#diff-9d530518f578f0d9376f1d0b6474c16fbf2b1b9e24d7ebf898ad4e273fcdcb1dL594-R838 (you need to load the HttpFields.java changes) *  Stack trace in the logs about "UnsupportedOperationException: Read Only": {noformat}2024-01-11 17:06:07,333 [qtp2124046270-119 - http://localhost:8080/xwiki/bin/view/Main/] ERROR .o.i.DefaultObservationManager - Failed to send event [class org.xwiki.bridge.event.ActionExecutedEvent (view)] to listener [com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl@4d466222]  java.lang.UnsupportedOperationException: Read Only  at org.eclipse.jetty.server.internal.ResponseHttpFields$2.set(ResponseHttpFields.java:227)  at org.eclipse.jetty.server.internal.ResponseHttpFields$2.set(ResponseHttpFields.java:169)  at org.eclipse.jetty.http.HttpFields$Mutable.put(HttpFields.java:1130)  at org.eclipse.jetty.ee8.nested.Response.addCookie(Response.java:255)  at org.eclipse.jetty.ee8.nested.Response.addCookie(Response.java:284)  at com.xpn.xwiki.web.XWikiServletResponse.addCookie(XWikiServletResponse.java:167)  at com.xpn.xwiki.stats.impl.StatsUtil.addCookie(StatsUtil.java:671)  at com.xpn.xwiki.stats.impl.StatsUtil.findCookie(StatsUtil.java:694)  at com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.onEvent(XWikiStatsServiceImpl.java:153)  at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:338)  at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:303)  at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:747)  at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:339)  at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:108)  at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) {noformat} *  For Jetty 12 to deploy the XWiki WAR, we need to update the {{jetty-web.xml}} file at https://github.com/xwiki/xwiki-platform/blob/XWIKI-21211/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/WEB-INF/jetty-web.xml to use {{<Configure class="org.eclipse.jetty.ee8.webapp.WebAppContext">}}. We need to find a way so that we can deploy XWiki in both Jetty 10 and Jetty 12.
    |  
                                
                              
                                 |