在詹金斯重新部署WAR时出错,如何解决?

时间:2018-12-31 01:46:42

标签: java maven tomcat jenkins

我正在端口8090和8081上同时运行两个tomcat服务器。 8090与Jenkins分期作业相关 &8081与詹金斯的生产工作有关 8090运行完美。但是8081出现以下错误:

由用户admin开始 在工作空间C:\ Program Files(x86)\ Jenkins \ workspace \ deploy-to-prod中构建 从“ maven3-project”内部版本号69复制了1个工件 将C:\ Program Files(x86)\ Jenkins \ workspace \ deploy-to-prod \ webapp \ target \ webapp.war部署到带有上下文的Tomcat 8.x远程容器   重新部署[C:\ Program Files(x86)\ Jenkins \ workspace \ deploy-to-prod \ webapp \ target \ webapp.war]   取消部署[C:\ Program Files(x86)\ Jenkins \ workspace \ deploy-to-prod \ webapp \ target \ webapp.war] 错误:生成步骤因异常而失败 org.codehaus.cargo.container.ContainerException:无法取消部署[C:\ Program Files(x86)\ Jenkins \ workspace \ deploy-to-prod \ webapp \ target \ webapp.war]     在org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.undeploy(AbstractTomcatManagerDeployer.java:139)     在org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:177)     在hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:77)     在hudson.plugins.deploy.CargoContainerAdapter $ DeployCallable.invoke(CargoContainerAdapter.java:147)     在hudson.plugins.deploy.CargoContainerAdapter $ DeployCallable.invoke(CargoContainerAdapter.java:117)     在hudson.FilePath.act(FilePath.java:1078)     在hudson.FilePath.act(FilePath.java:1061)     在hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:114)     在hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeploy(PasswordProtectedAdapterCargo.java:93)     在hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:64)     在hudson.tasks.BuildStepMonitor $ 3.perform(BuildStepMonitor.java:45)     在hudson.model.AbstractBuild $ AbstractBuildExecution.perform(AbstractBuild.java:744)     在hudson.model.AbstractBuild $ AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)     在hudson.model.Build $ BuildExecution.post2(Build.java:186)     在hudson.model.AbstractBuild $ AbstractBuildExecution.post(AbstractBuild.java:635)     在hudson.model.Run.execute(Run.java:1835)     在hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)     在hudson.model.ResourceController.execute(ResourceController.java:97)     在hudson.model.Executor.run(Executor.java:429) 由以下原因引起:org.codehaus.cargo.container.tomcat.internal.TomcatManagerException:Tomcat管理器响应“失败-无法删除[C:\ Program Files \ APACHE \ apache-tomcat-8.5.37-production \ webapps \ webapp。该文件的持续存在可能会导致问题。 “,而不是预期的“确定”消息     在org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:715)     在org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:501)     在org.codehaus.cargo.container.tomcat.internal.TomcatManager.undeploy(TomcatManager.java:441)     在org.codehaus.cargo.container.tomcat.Tomcat7xRemoteDeployer.performUndeploy(Tomcat7xRemoteDeployer.java:61)     在org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.undeploy(AbstractTomcatManagerDeployer.java:129)     ...另外18个 org.codehaus.cargo.container.tomcat.internal.TomcatManagerException:Tomcat管理器响应“失败-无法删除[C:\ Program Files \ APACHE \ apache-tomcat-8.5.37-production \ webapps \ webapp.war]。该文件的继续存在可能会导致问题。 “,而不是预期的“确定”消息     在org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:715)     在org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:501)     在org.codehaus.cargo.container.tomcat.internal.TomcatManager.undeploy(TomcatManager.java:441)     在org.codehaus.cargo.container.tomcat.Tomcat7xRemoteDeployer.performUndeploy(Tomcat7xRemoteDeployer.java:61)     在org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.undeploy(AbstractTomcatManagerDeployer.java:129)     在org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:177)     在hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:77)     在hudson.plugins.deploy.CargoContainerAdapter $ DeployCallable.invoke(CargoContainerAdapter.java:147)     在hudson.plugins.deploy.CargoContainerAdapter $ DeployCallable.invoke(CargoContainerAdapter.java:117)     在hudson.FilePath.act(FilePath.java:1078)     在hudson.FilePath.act(FilePath.java:1061)     在hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:114)     在hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeploy(PasswordProtectedAdapterCargo.java:93)     在hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:64)     在hudson.tasks.BuildStepMonitor $ 3.perform(BuildStepMonitor.java:45)     在hudson.model.AbstractBuild $ AbstractBuildExecution.perform(AbstractBuild.java:744)     在hudson.model.AbstractBuild $ AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)     在hudson.model.Build $ BuildExecution.post2(Build.java:186)     在hudson.model.AbstractBuild $ AbstractBuildExecution.post(AbstractBuild.java:635)     在hudson.model.Run.execute(Run.java:1835)     在hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)     在hudson.model.ResourceController.execute(ResourceController.java:97)     在hudson.model.Executor.run(Executor.java:429) 构建步骤“将战争/耳朵部署到容器”将构建标记为失败 完成:失败

#我已经更改了server.xml文件: <Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8444" />

<!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8084" protocol="AJP/1.3" redirectPort="8444" />

`

0 个答案:

没有答案