ERROR: transport error 202: communication failed when starting Tomcat 7 in debug mode

I installed tomcat 7.0.68 on a windows7-64bit machine.

If I run catalina.bat jpda start , it just opens and closes, and no logs are generated.

If I run catalina.bat jpda run , I get below error

Using CATALINA_BASE:   "C:\apache-tomcat-7.0.68"
Using CATALINA_HOME:   "C:\apache-tomcat-7.0.68"
Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.68\temp"
Using JRE_HOME:        "C:\Java\jre7"
Using CLASSPATH:       "C:\apache-tomcat-7.0.68\bin\bootstrap.jar;C:\apache- 
                         tomcat-7.0.68\bin\tomcat-juli.jar"
Picked up _JAVA_OPTIONS: -Xmx512M
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
       JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports  
        initialized [../../../src/share/back/debugInit.c:750]
FATAL ERROR in native method: JDWP No transports initialized,
                       jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
+7
source share
5 answers

I changed the port, set JPDA_ADDRESS to 1043, and it worked for me.

+5
source

, tomcat. 8080, 8443, 8005, 8009 .. grep tomcat, , .

netstat -an

, , /, tomcat . : tomcat (.. 8000). ,

+7

, , . , , CATALINA_OPTS .

Tomcat

, .

Catalina.sh , CATALINA_OPTS "start" "start-security", JAVA_OPTS "stop" ( , Tomcat 6.0.33 openSUSE 12.1).

+1

In my case, I have several tomcat running. In two tomcat I gave the same jpda address, so one of tomcat could not start because the address was already used.

0
source

Try killing processes with a single line command -

pkill -9 -f tomcat
0
source

All Articles