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

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.