Pregunta

I have a tomcat running on a server which can only be accessed via a jump host. We can enable remote debugging in eclipse if we can access the server directly (like the jump host). I was wondering is there any way that I can remote debug the tomcat which is running on a server which can't be directly accessed?

¿Fue útil?

Solución

If I've understood your infrastructure correctly I can think of 2 possible ways to do this.

  1. Port forward some of the jump host's ports (8000 for example) to debug port of your tomcat server. Then start remote debugging in eclipse as you would normally do (i.e. "Socket Attach" to jump host ip and port 8000).

  2. If you can reach host with running eclipse instance from your server (the one that runs tomcat) - you can make tomcat connect to your eclipse that uses "Socket Listen" remote debugging mode.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top