Check your run/debug configuration. Tomcat 4.1.31 with IDEA 4.5.3

I set up the Tomcat app server with a test Web App. Clicking the Run arrow works fine - launches ok. Clicking the Debug arrow with default settings gives error:

Check your run/debug configuration. Failed to establish connection to the target VM 127.0.0.1.3182 using socket transport.

I've tried different debug port numbers with no success.

I was able to get Tomcat 4.0.6 debug working with IDEA 3.0 using CATALINA_OPTS :

-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5050

Please help. I've searched everywhere and can't find anything that answers this.




5 comments
Comment actions Permalink

Hello Ryan,

I set up the Tomcat app server with a test Web App. Clicking the Run
arrow works fine - launches ok. Clicking the Debug arrow with default
settings gives error:

Check your run/debug configuration. Failed to establish connection to
the target VM 127.0.0.1.3182 using socket transport.

I've tried different debug port numbers with no success.

I was able to get Tomcat 4.0.6 debug working with IDEA 3.0 using
CATALINA_OPTS :

-server -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5050

Please help. I've searched everywhere and can't find anything that
answers this.


Tomcat 4.1.x versions are not supported, please use 4.0.6 or 5.x.
There is a guide for beginners: ftp://intellij.net/pub/.idea/TomcatTutorial/TomcatJspDebug.zip
.

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"




0
Comment actions Permalink

Serge
Thanks for reply.

I installed JDK 1.5 = C:\Program Files\Java\jdk1.5.0_02
I installed Tomcat 5.5.7
I installed IDEA 4.5.4

I followed the instructions exactly in the beginner doc you suggested and now when I click Debug or Run I get Error:

JDWP unable to get necessary JVMTI capabilities. ["debugInit.c",L279]

0
Comment actions Permalink

Ryan,

Did you ever figure out what was causing this error for you?

I have got the same exact same error occurring when I try to load jpda with Tomcat 5.0.28 -

ERROR: JDWP unable to get necessary JVMTI capabilities. ["debugInit.c",L279]

- and a google search for the error brought up one result, your posting here.

Thank you,

Dan

0
Comment actions Permalink

Never mind I was able to figure it out -posting back here in case anyone else finds their way here too.

I had set the JAVA_OPTS to load the debug options in the catalina.sh script - when in fact the catalina.sh script was looking for the "jpda" in its comaand line args to do the same thing - so it was trying to load them twice. Removed my edit to the JAVA_OPTS and the script took care of things from there.

0
Comment actions Permalink

Just wanted to say thanks for posting the solution you found, I was perplexed by the same situation!

0

Please sign in to leave a comment.