【问题标题】:TeamCity deployment in TomcatTomcat 中的 TeamCity 部署
【发布时间】:2017-06-07 13:42:40
【问题描述】:

如何使用 TeamCity 在 Tomcat 中创建自动部署。我使用了容器部署器,但它总是说我申请部署。

    [Step 6/8] org.codehaus.cargo.container.ContainerException: Failed to deploy [/home/aecktann/JetBrains/TeamCity/buildAgent/work/f8bcef79481c6bb2/target/ChatBot-1.0-SNAPSHOT.war]
, root cause is org.codehaus.cargo.container.*******.internal.TomcatManagerException: The Tomcat Manager responded "FAIL - Deployed application at context path /ChatBot-1.0-SNAPSHOT but context failed to start
" instead of the expected "OK" message
[16:41:40]  [Step 6/8] Step TomcatDeployer (Container Deployer) failed

【问题讨论】:

  • 没有任何信息可以帮助您了解您遇到的问题。部署到 Tomcat 是指将 WAR 文件放入 Tomcat 目录?要不然是啥?从这个角度来看,部署只是复制 WAR 文件。
  • 我希望在我的 git 服务器上的存储库中进行任何更改后,teamcity 将在 tomcat 中进行部署。我会在我的主人身上看到一切
  • 好的。您正在配置 VCS Root 和 Trigger 以捕获 repo 中的更改。然后 TeamCity 构建您的工件 (WAR)。然后,您只需执行复制操作,将您的 WAR 上传到您应该知道的 Tomcat 目录。这就是你想要的东西。

标签: java tomcat deployment continuous-integration teamcity


【解决方案1】:

它看起来不像部署失败,所以不是 jenkins,它可能是实际的应用程序没有启动,您是否使用同一个 jenkins 用户进行了手动部署?也可能是权限问题。

【讨论】:

    【解决方案2】:

    我正在解决这个问题。问题出在 Spring servlet 中,而 Tomcat 没有编译

    Step 1/1: Deploy to localhost (Container Deployer)
    [15:49:12]
    [Step 1/1] org.codehaus.cargo.container.ContainerException: Failed to create deployable with implementation class org.codehaus.cargo.container.tomcat.TomcatWAR for the parameters (container [id = [tomcat8x]], deployable type [war]).
    , root cause is java.io.FileNotFoundException: C:\BuildAgent\work\81266a51f2e66bcc\11 (The system cannot find the file specified)
    [15:49:12][Step 1/1] Step Deploy to localhost (Container Deployer) failed
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-25
      • 2013-12-30
      相关资源
      最近更新 更多