Jenkins部署异常: java.io.FileNotFoundException: http://ip:端口/manager/text/list
Jenkins相关文章1.Jenkins安装(Linux版)2.Jenkins:从SVN拉取Maven项目3.Jenkins:从SVN拉取Maven项目,部署Tomcat(Deploy to container)Jenkins相关文章
·
Jenkins相关文章
3.Jenkins:从SVN拉取Maven项目,部署Tomcat(Deploy to container)
异常现象
Caused by: java.io.FileNotFoundException: http://localhost:8086/manager/text/list
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:544)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:686)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:699)
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:174)
... 16 more
异常原因
- 第一种情况:tomcat-users.xml没有添加manager-script组和相应的用户;或者Jenkins配置中tomcat的用户名或密码输错
- 第二种情况:TOMCAT_HOME/conf/webapps中自带的manager等管理项目被删除,如下图:
异常解决
- 第一种情况:tomcat-users.xml添加manager-script组和相应的用户;检查Jenkins配置中tomcat的用户名或密码是否正确
- 第二种情况:TOMCAT_HOME/conf/webapps中自带的manager等管理项目需要保留
更多推荐
已为社区贡献53条内容
所有评论(0)