gpt4 book ai didi

hudson-plugins - Tomcat 7 上的 Hudson 部署错误

转载 作者:行者123 更新时间:2023-12-04 06:07:00 27 4
gpt4 key购买 nike

我正在使用 Hudson 2.1.2 Post Maven Build 部署一个 WAR 文件,该文件失败并显示此错误消息。我安装了 Hudson 部署插件

Deploying C:\Users\Admin\workspace_astra\astra-maven\target\astra-maven-0.0.1-SNAPSHOT.war to container Tomcat 7.x Remote The property cargo.tomcat.manager.url has been deprecated, please use cargo.remote.uri instead. ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception org.codehaus.cargo.container.ContainerException: Failed to redeploy [C:\Users\Dieter\workspace_astra\astra-maven\target\astra-maven-0.0.1-SNAPSHOT.war] at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:191) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:62) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:92) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:75) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:75) 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:630) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:584) at hudson.model.Build$RunnerImpl.post2(Build.java:159) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:553) at hudson.model.Run.run(Run.java:1391) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.io.FileNotFoundException: http://localhost:8080/manager/list at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:507) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:644) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:657) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:172) ... 17 more java.io.FileNotFoundException: http://localhost:8080/manager/list at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:507) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:644) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:657) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:172) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:62) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:92) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:75) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:75) 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:630) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:584) at hudson.model.Build$RunnerImpl.post2(Build.java:159) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:553) at hudson.model.Run.run(Run.java:1391) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)



在我的 hudson 环境中,我在哪里可以将这个 cargo.tomcat.manager.url 更改为 cargo.remote.uri,因为这就是部署的目的?

最佳答案

我找到了答案。 tomcat 7 的部署插件有一个 bug,所以 Dominique Righetto 为大家重写了它,并把它放到了谷歌文档这里 https://docs.google.com/#folders/0B7SAopRfWOagNjk5MjBjYTMtODEyYy00ZGRiLTgxZWQtODk1ZDdmN2M4Nzc2 .

他们在 Hudson Wiki 上谈论它

http://wiki.hudson-ci.org/display/HUDSON/Deploy+Plugin

希望有帮助

关于hudson-plugins - Tomcat 7 上的 Hudson 部署错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8242361/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com