Error:Unable to connect to the localhost:1099

简介: Error:Unable to connect to the localhost:1099

问题

在配置好Tomcat之后去执行,会出现Unable to connect to the localhost:1099这个问题,这个问题是因为我们运行的是本地的代码而不是远程的代码,所以在配置tomcat的时候需要选择local而不是remote。

4bc846d94f1f4814bd6d93951d9a0173.png

方案

1.编辑tomcat的配置

b8d4975411284b62b5e448e45363592a.png

2.将之前配置好的tomcat进行移除

3cdfd80888f2408ea469ee2d91e09cc8.png

3.然后点击添加,找到Tomcat,选择Local即可。

注:如果是运行本地的代码需要选择Local如果运行远程的代码需要选择Remote

f1c304b856bb4206a7f4956ebd318727.png

4.添加完之后在对应的配置jdk和war包什么的就可以了。


相关文章
|
4月前
|
Android开发
SocketException: Failed to create server socket(OS Error: Permission denied, errno = 13)
SocketException: Failed to create server socket(OS Error: Permission denied, errno = 13)
68 3
|
6月前
|
Linux 数据安全/隐私保护
Could not connect to ‘121.37.92.110‘ (port 22): Connection failed.
Could not connect to ‘121.37.92.110‘ (port 22): Connection failed.
|
6月前
Could not connect to ‘x.x.x.x ‘(port 22): Connection failed.Failed to start sshd.service:
Could not connect to ‘x.x.x.x ‘(port 22): Connection failed.Failed to start sshd.service:
Error from server error dialing backend remote error tls internal error
Error from server error dialing backend remote error tls internal error
134 0
|
Android开发
Error connecting to the service protocol failed to connect to错误
Error connecting to the service protocol failed to connect to错误
【MySQL8.0】【Junit】Access denied for user ‘‘@‘localhost‘ + Internal Error occurred.
【MySQL8.0】【Junit】Access denied for user ‘‘@‘localhost‘ + Internal Error occurred.
181 0
【MySQL8.0】【Junit】Access denied for user ‘‘@‘localhost‘ + Internal Error occurred.
|
NoSQL MongoDB
运行 mongo 出现 Error: couldn‘t connect to server 127.0.0.1:27017, connection attempt failed
运行 mongo 出现 Error: couldn‘t connect to server 127.0.0.1:27017, connection attempt failed
1085 0
运行 mongo 出现 Error: couldn‘t connect to server 127.0.0.1:27017, connection attempt failed
|
网络协议 Oracle MySQL
从源码解析ERROR 1129 (HY000):Host is blocked because of many connection errors
原创水平有限,有错请指出 源码版本5.7.14 今天群里一个朋友出现如下错误: ERROR 1129 (HY000): Host '10.0.0.8' is blocked because of many connection errors; unblock w...
2540 0