idea运行maven项目时连接Tomcat服务器失败
来源:5-5 jdk、tomcat、maven配置及初始化web空白项目
Lxj6129
2018-01-30
老师,我一直用的是CentOS6.8系统,按视频一步步操作,防火墙也增加了199端口开放,可是在idea15里运行maven项目时显示:
/develop/apache-tomcat-7.0.82/bin/catalina.sh run
[2018-01-30 08:27:41,913] Artifact lxjmmal:war: Server is not connected. Deploy is not available.
Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: LXJ: LXJ: Temporary failure in name resolution
Disconnected from server
Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:199
2回答
-
Geely
2018-02-04
wn: java.net.UnknownHostException: LXJ: LXJ: Temporary failure in name resolution
看样子应该是项目重命名没有改全,文件夹的名字改了,maven里的项目名字也要保持一致。
022018-02-06 -
星辰Iron
2018-01-30
你好同学,报错提示UnknownHostException未知主机异常,排查一下看看你的Tomcat配置信息是否和老师一致。
082019-12-11
相似问题