Debug启动Tomcat报错
在项目过程中遇到Run启动Tomcat没有问题,而Debug启动Tomcat却出现报错。
异常信息如下
Application Server was not connected before run configuration stop, reason:
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketException: Connection reset]
原因:
IDEA中Tomcat的配置出现问题:
这里的路径我之前好像在做什么的时候改了一下,所以导致我一直报错,网上查询的什么jre版本都无法解决,这里的路径必须要跟环境变量中配置的CATALINA_BASE路径一致,这样才能正常启动。
估计很少有人遇到这个问题吧…但希望能够帮助到跟我遇到同样问题的人。