简体   繁体   English

Tomcat中的TeamCity部署

[英]TeamCity deployment in Tomcat

How to create autodeployment in Tomcat with TeamCity. 如何使用TeamCity在Tomcat中创建自动部署。 I used container deployer but it always says me filed to deploy. 我使用了容器部署程序,但是它总是说我已提交部署。

    [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

it doesn't look like the deploy failed, so not jenkins, it might be the actual app not starting, have you done a manual deploy with the same jenkins user? 它看起来好像部署失败,所以不是jenkins,可能不是实际的应用程序启动了,您是否使用相同的jenkins用户完成了手动部署? might be a permission issue also. 也可能是权限问题。

I'am fix this problem. 我解决了这个问题。 Problem was in Spring servlets and Tomcat didn't compile 问题出在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