Attempting to set up jenkins and its container deploy plugin.
尝试设置jenkins及其容器部署插件。
However, I am receiving the following stacktrace :
但是,我收到了以下stacktrace:
ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception
org.codehaus.cargo.container.ContainerException: Failed to deploy [/myHome/jenkins/jobs/myAPP/workspace/target/ROOT.war]
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:111)
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:187)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:60)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:86)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:73)
at hudson.FilePath.act(FilePath.java:784)
at hudson.FilePath.act(FilePath.java:766)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:73)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:45)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675)
at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:998)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622)
at hudson.model.Run.run(Run.java:1429)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: FAIL - Failed to deploy application at context path /ROOT
Which isn't really that helpful, I can deploy manually using tomcat manager, and also copying the war file across using command line options works. But i can not get the automated deploy to work.
这并不是很有用,我可以使用tomcat manager手动部署,也可以使用命令行选项复制war文件。但是我不能让自动部署工作。
I am using a tomcat url of http://localhost:8080/
and the deploy fails when their is no app currently deployed.
我正在使用http://localhost:8080/的tomcat url,当它们的应用程序当前没有部署时,部署失败。
Any help gratefully received, thanks.
感谢您的帮助。
2 个解决方案
#1
7
Just a wild guess but the ROOT context is not: /ROOT but rather / maybe there is something wrong in your config
只是一个粗略的猜测,但是根上下文不是:/ROOT而是/可能您的配置有问题
#2
4
Its a ContainerExc not fileNotFound; therefore the war file has been located.
它是一个ContainerExc,而不是fileNotFound;因此战争档案已经被定位。
URL should be http://localhost:8080
URL应该http://localhost:8080
Is userName and Password provided?
是否提供用户名和密码?
Is this userName assigned a role of manager-script?
这个用户名是否被指定为管理脚本的角色?
is the tomcat webapp cleared down once for work and temp folder?
tomcat webapp是否被清除一次用于工作和临时文件夹?
If YES to above all, now run the tomcat without any war fiel present in the webapps folder and open a web broswer to see http://localhost:8080
is accessible. Now whilst this tomcat running, build the jenkins job and deployment should be fine.
如果是,那么现在在webapps文件夹中运行tomcat,而不存在任何war fiel,并打开一个web broswer以查看http://localhost:8080是否可访问。现在,当这个tomcat运行时,构建jenkins作业和部署应该没问题。
#1
7
Just a wild guess but the ROOT context is not: /ROOT but rather / maybe there is something wrong in your config
只是一个粗略的猜测,但是根上下文不是:/ROOT而是/可能您的配置有问题
#2
4
Its a ContainerExc not fileNotFound; therefore the war file has been located.
它是一个ContainerExc,而不是fileNotFound;因此战争档案已经被定位。
URL should be http://localhost:8080
URL应该http://localhost:8080
Is userName and Password provided?
是否提供用户名和密码?
Is this userName assigned a role of manager-script?
这个用户名是否被指定为管理脚本的角色?
is the tomcat webapp cleared down once for work and temp folder?
tomcat webapp是否被清除一次用于工作和临时文件夹?
If YES to above all, now run the tomcat without any war fiel present in the webapps folder and open a web broswer to see http://localhost:8080
is accessible. Now whilst this tomcat running, build the jenkins job and deployment should be fine.
如果是,那么现在在webapps文件夹中运行tomcat,而不存在任何war fiel,并打开一个web broswer以查看http://localhost:8080是否可访问。现在,当这个tomcat运行时,构建jenkins作业和部署应该没问题。