简体   繁体   中英

TeamCity deployment in Tomcat

How to create autodeployment in Tomcat with TeamCity. 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? might be a permission issue also.

I'am fix this problem. Problem was in Spring servlets and Tomcat didn't compile

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM