I am using Jetty 9.4.44 and for jetty debug logs I have added jetty-logging.properties in classpath
Setup logging implementation
org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog
org.eclipse.jetty.LEVEL=INFO
Make websocket more verbose for testing
org.eclipse.jetty.websocket.LEVEL=DEBUG
After adding jetty-logging.properties file and restarting the server getting this Error
ALL 000000000000 GLOBAL_SCOPE 2022-04-21 01:03:42.427:DBUG:oejs.HttpChannel:qtp1984050658-1676: Could not perform ERROR dispatch, aborting
java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Dispatcher (initialization failure)
at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:91)
at org.eclipse.jetty.server.handler.ContextHandler$Context.getRequestDispatcher(ContextHandler.java:2249)
at org.eclipse.jetty.server.handler.ErrorHandler.doError(ErrorHandler.java:111)
at org.eclipse.jetty.server.handler.ErrorHandler.handle(ErrorHandler.java:95)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$3(HttpChannel.java:449)
at org.eclipse.jetty.server.HttpChannel$$Lambda$885.00000000D40118D0.dispatch(Unknown Source)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:447)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
at java.lang.Thread.run(Thread.java:785)
Caused by:
java.lang.NullPointerException: Logger with name [org.eclipse.jetty.server.Dispatcher]
at java.util.Objects.requireNonNull(Objects.java:239)
at org.eclipse.jetty.util.log.Log.getLogger(Log.java:294)
at org.eclipse.jetty.util.log.Log.getLogger(Log.java:267)
at org.eclipse.jetty.server.Dispatcher.<clinit>(Dispatcher.java:45)
at org.eclipse.jetty.server.handler.ContextHandler$Context.getRequestDispatcher(ContextHandler.java:2249)
at org.eclipse.jetty.server.handler.ErrorHandler.doError(ErrorHandler.java:111)
at org.eclipse.jetty.server.handler.ErrorHandler.handle(ErrorHandler.java:95)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$3(HttpChannel.java:449)
at org.eclipse.jetty.server.HttpChannel$$Lambda$885.00000000D40118D0.dispatch(Unknown Source)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:447)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)