0

i started the tomcat by setting below two in setenv.sh file under TOMCAT_HOME/bin/ export JPDA_ADDRESS="5005" export JPDA_TRANSPORT="dt_socket"

startd server using sudo ./catalina.sh jpda run the output log says 

Listening for transport dt_socket at address: 5005

Created a new remote configuration from edit_configuration and added host name and port start debug and got below error.

5:35 PM Error running 'Remote_Debugging': Unable to open debugger port (xxxxxxxxxx.xxx:5005): java.net.ConnectException "Connection refused (Connection refused)"

thanks in advance.

sramise
  • 11
  • 4
  • i also added JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" in catalina.sh and tried but same error. – sramise Jun 18 '20 at 12:37
  • What JDK do you use for running? For JDKs >= 9 you should use `address=*:8001` for remote debug options. See https://dev-aux.com/java/java-local-and-remote-jvm-debugging-jdk-8-and-later See also https://stackoverflow.com/a/55689736/2000323 – Andrey Jun 19 '20 at 06:19
  • Thanks Andrey, after changing the port it's working now. – sramise Jun 19 '20 at 18:33

0 Answers0