简体   繁体   English

失败 - 无法在上下文路径/ ROOT部署应用程序。 部署jenkins插件以便部署

[英]FAIL - Failed to deploy application at context path /ROOT. Deploy plugin of jenkins failling to deploy

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. 哪个不是真的有用,我可以使用tomcat管理器手动部署,也可以使用命令行选项复制war文件。 But i can not get the automated deploy to work. 但我无法让自动部署工作。

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网址,当部署当前没有应用时,部署失败。

Any help gratefully received, thanks. 任何帮助感激不尽,谢谢。

只是一个疯狂的猜测,但ROOT上下文不是:/ ROOT而是/或者你的配置可能有问题

Its a ContainerExc not fileNotFound; 它的ContainerExc不是fileNotFound; therefore the war file has been located. 因此战争档案已被找到。

URL should be http://localhost:8080 URL应为http://localhost:8080

Is userName and Password provided? 是否提供了userName和Password?

Is this userName assigned a role of manager-script? 此userName是否分配了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. 如果是最重要的,现在运行tomcat而不在webapps文件夹中存在任何战争场,并打开web broswer以查看http://localhost:8080是否可访问。 Now whilst this tomcat running, build the jenkins job and deployment should be fine. 现在,当这个tomcat运行时,构建jenkins工作并部署应该没问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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