I am trying to start Tomcat 7 in debug mode. If I type ./catalina.sh jpda start , then tomcat works as if the jpda option is missing and produces:
Michaels-MacBook-Pro:bin clairewilgar$ ./catalina.sh jpda start Using CATALINA_BASE: /Users/clairewilgar/Downloads/apache-tomcat-7.0.42-MIS Using CATALINA_HOME: /Users/clairewilgar/Downloads/apache-tomcat-7.0.42-MIS Using CATALINA_TMPDIR: /Users/clairewilgar/Downloads/apache-tomcat-7.0.42-MIS/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/clairewilgar/Downloads/apache-tomcat-7.0.42-MIS/bin/bootstrap.jar:/Users/clairewilgar/Downloads/apache-tomcat-7.0.42-MIS/bin/tomcat-juli.jar
and does not change CATALINA_OPTS or anything else. If I try to connect through Eclipse, I get an error
"Starting a workflow" has encountered a problem. Failed to connect to the remote virtual machine. Connection rejected.
I tried changing the port to jpda port on 8001, but I did not try to declare JPDA parameters in the terminal before calling catalina.sh, but that does not make any difference. My catalytic .sh JPDA lines look like this:
if [ "$1" = "jpda" ] ; then if [ -z "$JPDA_TRANSPORT" ]; then JPDA_TRANSPORT="dt_socket" fi if [ -z "$JPDA_ADDRESS" ]; then JPDA_ADDRESS="8000" fi if [ -z "$JPDA_SUSPEND" ]; then JPDA_SUSPEND="n" fi if [ -z "$JPDA_OPTS" ]; then JPDA_OPTS="-agentlib:jdwp=transport=$JPDA_TRANSPORT,address=$JPDA_ADDRESS,server=y,suspend=$JPDA_SUSPEND" fi CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS" shift fi
Are there other reasons why the JPDA may not work? I use OSX (Mountain Lion) if there is something related to what I might have missed. Thanks in advance.
EDIT: My catalina.out file to run ./catalina.sh jpda start is located at http://pastebin.com/Z4GSvckr
java tomcat macos jpda
clairebones
source share