Tomcat Remote Debugging

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2010 03:19 PM
Has anybody used remote debugging in Tomcat, recently?
The Ant target tomcat.enable.debug doesn't seem to work anymore. It patches Tomcat's startup.sh script, but netstat shows that the server process is not listening on the configured port 8787 and none of the port it is listens on accepts connections from Eclipse.
I got it to work by changing the last line of startup.sh from:
With that Tomcat listens on port 8000 and Eclipse can connect to it.
The Ant target tomcat.enable.debug doesn't seem to work anymore. It patches Tomcat's startup.sh script, but netstat shows that the server process is not listening on the configured port 8787 and none of the port it is listens on accepts connections from Eclipse.
I got it to work by changing the last line of startup.sh from:
exec "$PRGDIR"/"$EXECUTABLE" start "$@"
to:exec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"
With that Tomcat listens on port 8000 and Eclipse can connect to it.
Labels:
- Labels:
-
Archive
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2010 06:18 AM
Shall I fix this in the build.xml file of the distro?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2010 03:16 AM
I indeed remember that it wasnt working anymore.
Thanks for looking into that!
Please do commit, but I would advise to wait until Tom's commit comes in that changes the build.xml a bit. Should be today if all goes well (right, Tom ;-).
That way everybody will stay happy 😉
Thanks for looking into that!
Please do commit, but I would advise to wait until Tom's commit comes in that changes the build.xml a bit. Should be today if all goes well (right, Tom ;-).
That way everybody will stay happy 😉

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2010 10:02 AM
I fixed the remote debugging support for Unix and Windows in http://fisheye.codehaus.org/changelog/activiti/?cs=1359 and updated the Developers Guide accordingly: http://docs.codehaus.org/display/ACT/Developers+Guide#DevelopersGuide-Setupscriptsinthedistro
Tomcat's remote debugging port is now 8000.
Tomcat's remote debugging port is now 8000.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2010 03:08 AM
Thanks, Falko!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2010 02:38 AM
thanks for fixing and updating the wiki!
