facebook

Remote debug application on Tomcat 5.0.28/Linux

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #216741 Reply

    Idefix
    Member

    Hi,

    I am in the final stages with one of my projects and need to debug the application remotely, running on Tomcat 5.0.28 on Linux (RH 3.0 ES).

    Now, I read all the forum mails I found about this issues and lots of other faqs, but still can’t seem to manage this …

    On the server, I launch using $CATALINA_HOME/bin/catalina.sh jpda start
    The original launch script would not set -Xnoagent, so I tried adding this, but with no success …

    The actual CATALINA_OPTS looks like this (I altered the launch script to show it): -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=8321,server=y,suspend=n

    I configured a remote debug session pointing to the proper IP and port (8321) and also selected the right project to debug …

    But whenever I try to debug, I get this message:

    Exception occured during launch

    Reason:
    Failed to connect to remote VM. Connection refused.

    What am I doing wrong? I can’t think of anything and also couldn’t find anything pointing me to a problem I might have …

    Thanks,
    Chris

    #216743 Reply

    Idefix
    Member

    Never mind … I should get some more sleep …
    The connection got blocked by the server side firewall. Opened defined port and things seem to work now!

    Thanks,
    Chris

    #216807 Reply

    snpe
    Member

    you need define tomcat in myeclipse, set brekapoint and start server from myeclipse

    you haven’t to edit catalina.sh – MyEclipse do it for you

    regards

    #216864 Reply

    Paul Kaiser
    Member

    I use the same option set to launch Tomcat 5.0.27 on a local VMWare guest running SuSE. I’ve never had any issues except when the port was not open. Have you checked that?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Remote debug application on Tomcat 5.0.28/Linux

You must be logged in to post in the forum log in