I have next task: Debug Apache Tomcat in Eclipse.
My steps:
./startup.sh
catalina.sh
I added next lines:export JPDA_ADDRESS=8000
export JPDA_TRANSPORT=dt_socket
startup.sh
:I comment this line:
#exec "$PRGDIR"/"$EXECUTABLE" start "$@"
and added next line:
exec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"
startup.sh
Why did this happen??
Maybe, it is depends on OS type? I use Ubuntu 11.10...
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