运行出现错误Application Server was not connected before run configuration stop

导入别人的一个简单项目出现这个错误:Application Server was not connected before run configuration stop, reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused: connect]

报错日志发全,有截图的话也发一下

本地连接被拒绝?防火墙?