Java – error starting Tomcat in remote debugging mode
•
Java
Tomcat is not started in debug mode Record the following log
C:\ApacheSoft\apache-tomcat-7.0.67\bin>catalina.bat jpda start Using CATALINA_BASE: "C:\ApacheSoft\apache-tomcat-7.0.67" Using CATALINA_HOME: "C:\ApacheSoft\apache-tomcat-7.0.67" Using CATALINA_TMPDIR: "C:\ApacheSoft\apache-tomcat-7.0.67\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.7.0_79" Using CLASSPATH: "C:\ApacheSoft\apache-tomcat-7.0.67\bin\bootstrap.jar;C:\ApacheSoft\apache-tomcat-7.0.67\bin\tomcat-juli.jar" =transport=dt_socket was unexpected at this time.
Solution
Let me guess, you're on the blog trifork. Com read a link called "how to debug applications remotely in intelligent idea"
Description in setenv Bat for windows:
set JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=1043,server=y,suspend=n"
Yes, that won't work catalina. Bat added its own quotation marks, so finally tried to do this:
if not ""-agentlib:jdwp=transport=dt_socket,suspend=n"" == "" goto gotJpdaOpts
A better plan is to:
set JPDA_OPTS=-agentlib:jdwp=transport=dt_socket,suspend=n
I know it was almost a year ago, but I encountered this problem and finally had to delete "@ echo off" from the Tomcat batch file and trace it myself I hope this will be voted on so that it can save others from this sadness
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码