When learning Java servlet, the sample code was downloaded from Wrox and the following error was found when preparing for Run/debug:
Error running Tomcat 8.5.8:unable to open debugger port (127.0.0.1:49551): java.net.SocketException "Socket closed"
/users/guqiang/tomcat/apache-tomcat-8.5.8/bin/catalina.sh stop
Using catalina_base:c:\program Files\apache Software Foundation\tomcat 8.0
Unable to start as Catalina_base contains a colon (:) character
Read the online explanation, most of them said the port number is wrong.
However, the error description is clearly written in the Catalina_base configuration that is not recognized (:)
Therefore, in the Run/debug configuration found in the original code has configured a specific environment variables (Pass environment Variable)
People with Macs can easily find the problem. Where does Mac come from C:\Programs Files ...:-(
Remove or correct the pass environment variables here. :-)
IntelliJ running the downloaded servlet times wrong error running Tomcat 8.5.8:unable to open debugger port (127.0.0.1:49551): java.net.SocketExcept Ion