javaeclipsedebuggingtomcatjpda

Debug Apache Tomcat. Oops! Google Chrome could not connect. Why?


I have next task: Debug Apache Tomcat in Eclipse.

My steps:

export JPDA_ADDRESS=8000 export JPDA_TRANSPORT=dt_socket

I comment this line:

#exec "$PRGDIR"/"$EXECUTABLE" start "$@"

and added next line:

exec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"

Why did this happen??

Maybe, it is depends on OS type? I use Ubuntu 11.10...


Solution

  • 1.) No pun intended: did you stop tomcat after modifying .sh files and before runing startup.sh?

    2.) Check tomcat log for errors.

    3.) I run Tomcat on debug this way:

    export JPDA_ADDRESS=8000

    export JPDA_TRANSPORT=dt_socket

    export JPDA_SUSPEND=n

    catalina.sh jpda start