Unable to open debugger port in IntelliJ IDEA

后端 未结 29 1383
误落风尘
误落风尘 2021-01-30 08:21

I have a problem that I can not set up my application in debug mode with IntelliJ IDE, but run mode is OK.

My OS is Windows 7, IDE is IntelliJ IDEA, web container is Tom

相关标签:
29条回答
  • 2021-01-30 08:42

    I had this exact message.

    The reason was that some IDE (I use Eclipse and Intellij) failed to shutdown the tomcat server. Or maybe crashed before it could do so.

    The solution was to navigate to C:\...\apache-tomcat-xxx\bin and run shutdown.

    0 讨论(0)
  • 2021-01-30 08:43

    the key to the issue is in debugger port. I was having the same problem, I was killing every process listening on port 8081 (my http port), 1099 (JMX port), tomcat shutdown port, every java.exe, and still nothing.

    The thing is this debugger port is different. If you run the application, it will go through the port you have Tomcat configured for, 8080, 8081 or whatever. But if you run it in Debug mode, it goes through a different port.

    If you go edit your Tomcat configuration from IntelliJ, the last tab is Startup/Connection. Here go see the configuration for Debug mode, and you'll see its port. Mine was 50473. I changed it to 50472, and everything started working again.

    0 讨论(0)
  • 2021-01-30 08:44

    This happens when you have application running on the same port number. One way to do this by killing the process forcefully. Open command prompt as an admin. Run command 'taskkill /IM "java.exe" /F'. This worked for me in Windows. Let me know if this works.

    0 讨论(0)
  • 2021-01-30 08:44

    Probably you get the same error message if the standalone.xml in your standalone/configuration folder cannot be found. At least I have the same error when using a WildFly 14.0.1:

    0 讨论(0)
  • 2021-01-30 08:44

    try chmod a+x /path/to/tomcat/bin/catalina.sh if you run it in intelliJ

    0 讨论(0)
  • 2021-01-30 08:45

    I have the same issue,because my computer's DNS miss 127.0.0.1 localhost. When I add 127.0.0.1 localhost to my host file,it become ok.

    0 讨论(0)
提交回复
热议问题