cancel
Showing results for 
Search instead for 
Did you mean: 

Tomcat Remote Debugging

falko_menge
Champ in-the-making
Champ in-the-making
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:
exec "$PRGDIR"/"$EXECUTABLE" start "$@"
to:
exec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"

With that Tomcat listens on port 8000 and Eclipse can connect to it.
5 REPLIES 5

falko_menge
Champ in-the-making
Champ in-the-making
Shall I fix this in the build.xml file of the distro?

jbarrez
Star Contributor
Star Contributor
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 😉

falko_menge
Champ in-the-making
Champ in-the-making
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.

jbarrez
Star Contributor
Star Contributor
Thanks, Falko!

tombaeyens
Champ in-the-making
Champ in-the-making
thanks for fixing and updating the wiki!