IntelliJ运行下载的Servlet时报错 Error running Tomcat 8.5.8: Unable to open debugger port (127.0.0.1:49551): java.net.SocketException

学习Java Servlet时,从Wrox上下载了示例代码,准备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

看了网上解释,大部分都说是端口号不对。

但是错误描述上分明写的CATALINA_BASE配置中有不能识别的 (:)

所以在Run/Debug Configuration中发现原有代码中有配置了特定的环境变量(Pass Environment Variable)

用MAC的人很容易就发现了问题。MAC下哪里来的C:\Programs Files...  :-(

把这里的Pass environment variables去掉或修正即可。:-)

时间: 2024-10-27 07:02:07

IntelliJ运行下载的Servlet时报错 Error running Tomcat 8.5.8: Unable to open debugger port (127.0.0.1:49551): java.net.SocketException的相关文章

Android 运行时报错Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled. 的解决办法

解决方法:在菜单栏,Tools->Android->Enable ADB integration勾选就可以了. Android 运行时报错Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled. 的解决办法

IntelliJ IDEA 启动tomcat 报错: idea Unable to open debugger port (127.0.0.1:58233): java.net.SocketException "socket closed"

debug启动项目弹出提示 Error running omp: Unable to open debugger port (127.0.0.1:50812): java.net.SocketException "socket closed" 错误.导致tomcat服务器无法启动. 1.根据端口号"80"查找进程号netstat -ano|findstr "80"TCP    0.0.0.0:80             0.0.0.0:0  

idea tomcat热部署 Error running 'Tomcat 7': Unable to open debugger port (127.0.0.1:3622): java.net.SocketExcepti

今天在进 tomcat 的 debug 模式时报了此异常, tomcat 进入 debug 模式失败 网上查了下原因,发现通过修改下面两个端口即可正常进入 tomcat 的 debug 模式 idea tomcat热部署 Error running 'Tomcat 7': Unable to open debugger port (127.0.0.1:3622): java.net.SocketExcepti 原文地址:https://www.cnblogs.com/kinome/p/89899

解决idea启动项目报错:Unable to open debugger port(127.0.0.1:60157):java.net.SocketException"socket closed

1.问题描述: 工作当中免不了要重启服务,debug模式下偶尔启动项目,却启动失败报错: Unable to open debugger port (127.0.0.1:60157): java.net.SocketException "socket closed" 2.原因分析 出现这个报错的原因是因为端口被占用导致的 3.解决方法 解决方法主要两种:修改端口配置(推荐).关闭占用端口的进程(不推荐). 方式一:修改端口配置(推荐)   被占用的端口可能是本地端口,也可能是JMX端口

Java入门到精通——调错篇之Spring2.5利用aspect实现AOP时报错: error at ::0 can't find referenced pointcut XXX

一.问题描述及原因. 利用Aspect注解实现AOP的时候出现了error at ::0 can't find referenced pointcut XXX.一看我以为注解写错了,结果通过查询相关资料是因为Spring2.5与中的aspectjweaver.jar 和aspectjrt.jar这两个jar包与JDK1.7不匹配. org.springframework.beans.factory.BeanCreationException: Error creating bean with n

如何解决登录OneDrive时报错Error 0x8004de40导致无法登陆?

如何解决登录OneDrive时报错Error 0x8004de40导致无法登陆? ?Lander Zhang 专注外企按需IT基础架构运维服务,IT Helpdesk 实战培训践行者博客:https://blog.51cto.com/lander IT Helpdesk 工程师实战培训课程:https://edu.51cto.com/lecturer/733218.html轻松进外企:IT Helpdesk工程师实战自学之路:https://blog.51cto.com/lander/24130

hive udaf 用maven打包运行create temporary function 时报错

用maven打包写好的jar,在放到hive中作暂时函数时报错. 错误信息例如以下: hive> create temporary function maxvalue as "com.leaf.data.Maximum"; java.lang.SecurityException: Invalid signature file digest for Manifest main attributes at sun.security.util.SignatureFileVerifier

打包新版本上传到AppStore时报错 ERROR ITMS-90034:

今天打包新版本上传到AppStore时报错 ERROR ITMS-90034:"Missing or invalid signature.The bundle'com.xxx.xxx' at bundle path 'Payload/xxx' is not signed using an Apple submission certificate." 这个错误是由证书错误导致的,解决这个问题可以按以下步骤依次查找 1.检验发布证书是否有效,打开钥匙串,找到发布证书,发布证书名字中有Dis

spring boot maven install时报错 Error creating bean with name 'serverEndpointExporter'

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverEndpointExporter' defined in class path resource [com/pky/testmybatis/config/WebSocketConfig.class]: Invocation of init method failed; nested exception is j