jenkins发布java项目报错

回复 收藏

谁能帮看看 这一段错误 错在哪里了。war包已经发布到tomcat下了 但是访问有问题

1.9_.2_.png

[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time:  41.553 s[INFO] Finished at: 2019-03-11T19:19:28+08:00[INFO] ------------------------------------------------------------------------Waiting for Jenkins to finish collecting data[JENKINS] Archiving /var/lib/jenkins/workspace/test-java/data/pom.xml to com.zrlog/data/1.9.2/data-1.9.2.pom[JENKINS] Archiving /var/lib/jenkins/workspace/test-java/data/target/data-1.9.2.jar to com.zrlog/data/1.9.2/data-1.9.2.jar[JENKINS] Archiving /var/lib/jenkins/workspace/test-java/common/pom.xml to com.zrlog/common/1.9.2/common-1.9.2.pom[JENKINS] Archiving /var/lib/jenkins/workspace/test-java/common/target/common-1.9.2.jar to com.zrlog/common/1.9.2/common-1.9.2.jar[JENKINS] Archiving /var/lib/jenkins/workspace/test-java/pom.xml to com.zrlog/zrlog/1.9.2/zrlog-1.9.2.pom[JENKINS] Archiving /var/lib/jenkins/workspace/test-java/service/pom.xml to com.zrlog/service/1.9.2/service-1.9.2.pom[JENKINS] Archiving /var/lib/jenkins/workspace/test-java/service/target/service-1.9.2.jar to com.zrlog/service/1.9.2/service-1.9.2.jar[JENKINS] Archiving /var/lib/jenkins/workspace/test-java/web/pom.xml to com.zrlog/web/1.9.2/web-1.9.2.pom[JENKINS] Archiving /var/lib/jenkins/workspace/test-java/web/target/../../target/zrlog-1.9.2.war to com.zrlog/web/1.9.2/web-1.9.2.war/var/lib/jenkins/workspace/test-java/target/zrlog-1.9.2.war is not inside /var/lib/jenkins/workspace/test-java/web/; will archive in a separate passchannel stoppedDeploying /var/lib/jenkins/workspace/test-java/target/zrlog-1.9.2.war to container Tomcat 8.x Remote with context   [/var/lib/jenkins/workspace/test-java/target/zrlog-1.9.2.war] is not deployed. Doing a fresh deployment.  Deploying [/var/lib/jenkins/workspace/test-java/target/zrlog-1.9.2.war]ERROR: Build step failed with exceptionorg.codehaus.cargo.container.ContainerException: Failed to deploy [/var/lib/jenkins/workspace/test-java/target/zrlog-1.9.2.war]        at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:106)        at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:184)        at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:77)        at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:147)        at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:117)        at hudson.FilePath.act(FilePath.java:1073)        at hudson.FilePath.act(FilePath.java:1056)        at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:114)        at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeploy(PasswordProtectedAdapterCargo.java:93)        at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:64)        at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)        at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)        at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)        at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073)        at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)        at hudson.model.Run.execute(Run.java:1843)        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)        at hudson.model.ResourceController.execute(ResourceController.java:97)        at hudson.model.Executor.run(Executor.java:429)Caused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The Tomcat Manager responded "FAIL - Deployed application at context path [/zrlog-1.9.2] but context failed to start" instead of the expected "OK" message        at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:715)        at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deployImpl(TomcatManager.java:761)        at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:312)        at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:101)        ... 18 moreorg.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The Tomcat Manager responded "FAIL - Deployed application at context path [/zrlog-1.9.2] but context failed to start" instead of the expected "OK" message        at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:715)        at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deployImpl(TomcatManager.java:761)        at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:312)        at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:101)        at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:184)        at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:77)        at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:147)        at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:117)        at hudson.FilePath.act(FilePath.java:1073)        at hudson.FilePath.act(FilePath.java:1056)        at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:114)        at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeploy(PasswordProtectedAdapterCargo.java:93)        at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:64)        at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)        at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)        at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)        at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073)        at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)        at hudson.model.Run.execute(Run.java:1843)        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)        at hudson.model.ResourceController.execute(ResourceController.java:97)        at hudson.model.Executor.run(Executor.java:429)Build step 'Deploy war/ear to a container' marked build as failureEmail was triggered for: AlwaysSending email for trigger: AlwaysSending email to: xxx@fxxx.comFinished: FAILURE

2019-03-11 19:41 举报
已邀请:
0

qwlp19910807

赞同来自:

jenkins发布就有问题   直接把网上下的war包放到tomcat里就没问题   问题应该在maven打包这边

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: