u012043557
慧强杨
采纳率0%
2016-08-01 02:00 阅读 2.6k

maven deploy Tomcat失败

maven 远程部署Tomcat失败。


 [INFO] <<< tomcat7-maven-plugin:2.2:deploy (default-cli) < package @ hui-web <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:deploy (default-cli) @ hui-web ---
[INFO] Deploying war to http://192.168.182.128:8081/myhui
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2078/33441 KB
[INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
[INFO] Retrying request
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2102/33441 KB
[INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
[INFO] Retrying request
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2062/33441 KB
[INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
[INFO] Retrying request
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2072/33441 KB
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.202 s
[INFO] Finished at: 2016-08-01T09:59:39+08:00
[INFO] Final Memory: 32M/433M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project hui-web: Cannot invoke Tomcat manager: Connection reset by peer: socket write error -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

4条回答 默认 最新

  • qq_19394755 大__淼 2016-08-01 02:21

    有可能是pom中依赖的资源 下载较慢 或者 就下载不下来

    点赞 评论 复制链接分享
  • lee4755026 无谓生活 2016-08-01 05:44

    改成mvn tomcat7:redeploy 试试,mvn tomcat7:deploy只适用于第一次部署

    点赞 评论 复制链接分享
  • lee4755026 无谓生活 2016-08-09 03:19

    tomcat-user.xml配置正确了么?需要配置manager-script角色



    <user username="tomcat" password="tomcat" roles="manager-gui"/>
    <user username="admin" password="admin" roles=" manager-script, manager-jmx, manager-status"/>
    
    点赞 评论 复制链接分享
  • leokoon leokoon 2018-01-10 02:54

    楼主后来解决了吗,我也遇到一样问题了,求解决方法

    点赞 评论 复制链接分享

相关推荐