I'm running into a really strange error when trying to debug an application deployed to a jetty (9.4) server. I followed the instructions here: https://www.eclipse.org/jetty/documentation/jetty-9/index.html#advanced-debugging for setting up remote debugging with eclipse. I added the debugging arguments to my startup script and if I make a status call on jetty I can see them listed:
RUN_CMD = /opt/java/8/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9999 -Djetty.home=/opt/jetty/9.4 -Djetty.base=/opt/web/jetty -Djava.io.tmpdir=/opt/jetty/temp -jar /opt/jetty/9.4/start.jar jetty.http.host=my ip adr jetty.http.port=my port jetty.spdyPort=my spd port jetty.state=/opt/web/jetty/jetty.state jetty-started.xml
If I run my start script it will pause and wait for me to launch the eclipse debugger before continuing. If I navigate to my app in the browser, I can see from the log output that my methods are running. However, breakpoints inside those methods are never getting hit and the execution never pauses.
I have tried everything I can think of and I just cannot see what I am doing wrong here. I've done this before and it worked, so I can only assume it is something about the way my application is deployed to jetty. Any suggestions would be appreciated.
UPDATE: I have narrowed down what I think is the source of the problem, but I still don't know how to fix it. I recently switched the logging module for jetty from log4j to logback. As soon as I disabled the logback module the debugging worked again. Unfortunately, simply disabling logging is not a long term solution. I still need some way of being able to debug AND have logging enabled.