Skip to Content
author's profile photo
Former Member

Remote Debugging problem


  When i try to start the tomcat server in debug mode, the server does not run at all.

  Here is a section from the tomcat.bat that handles the debug mode:

rem --- Start SAP Portals Modification


rem Debugging Tomcat in this window

echo Start tomcat in debug mode

%_STARTJAVA% %TOMCAT_OPTS% -classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5000,suspend=n,server=y -Dhttp.proxyHost=%_PROXY_HOST% -Dhttp.proxyPort=%_PROXY_PORT% -Dtomcat.home="%TOMCAT_HOME%" %_MAIN% start %2 %3 %4 %5 %6 %7 %8 %9

goto cleanup

rem --- End SAP Portals  Modification

  As a result of this i cannot debug my application (i'm using eclipse platform).

Any help would be appreciated.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Feb 09, 2004 at 09:58 AM


    My tomcat server now runs but i have a new problem.

    When i try to remote debug my application I get the following error message:

    "Failed to connect to remote VM. Connection refused."

    I have tomcat version 3.3.1 and i have tried jdk versions 1.3.1_06, 1.3.1_07, 1.3.1_08 and 1.3.1_10.

    I have also checked port 5000 and it was free (I have tried to replace ports but i get the same message).

    If any of you could help me out this, I would appreciate it greatly.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      First of all thank you for your response.

      But, it does not work for me.

      I've tried to remove the '-classic' option and rearrange the Xrun option, and I still get "Cannot connect to remote VM.Connection refused".

      Any other ideas would be appriciated.