簡體   English   中英

Tomcat中的TeamCity部署

[英]TeamCity deployment in Tomcat

如何使用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

它看起來好像部署失敗,所以不是jenkins,可能不是實際的應用程序啟動了,您是否使用相同的jenkins用戶完成了手動部署? 也可能是權限問題。

我解決了這個問題。 問題出在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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM