Eclipse debug issue : Failed to connect to remote VM. Connection refused. Connection refused
Hi
I'm following this guide to develop a custom extension - ThingWorx Extension Development Guide (ptc.com)
When I try to debug an extension from Eclipse I'm getting the below error

I have added the below Java options in tomcat
-agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n
Tomcat Service :
[Unit]
Description=Tomcat 9 servlet container
After=network.target
[Service]
Type=forking
User=tomcat
Group=tomcat
Environment="JAVA_HOME=/usr/lib/jvm/jdk-11.0.11"
Environment="JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n -Djava.security.egd=file:///dev/urandom -Djava.awt.headless=true"
Environment="CATALINA_BASE=/opt/tomcat/latest"
Environment="CATALINA_HOME=/opt/tomcat/latest"
Environment="CATALINA_PID=/opt/tomcat/latest/temp/tomcat.pid"
Environment="CATALINA_OPTS=-Dserver -Dd64 -XX:+UseG1GC -Dfile.encoding=UTF-8 -Djava.library.path=/opt/tomcat/latest/webapps/Thingworx/WEB-INF/extensions"
ExecStart=/opt/tomcat/latest/bin/startup.sh
ExecStop=/opt/tomcat/latest/bin/shutdown.sh
[Install]
WantedBy=multi-user.target
Could some one help me with this
Thanks in advance
/VR


