tongweb部署失败,在tomcat上部署正常
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tongweb部署失败,在tomcat上部署正常相关的知识,希望对你有一定的参考价值。
报错信息见图,有没有大佬遇到过改怎么解决
参考技术A 楼主这个问题解决了吗,我也报这个错了,你怎么弄的 参考技术B t上部署正常Jenkins 部署在 Tomcat 7 上失败,java.io.FileNotFoundException: http://localhost:8081/manager/text/list
【中文标题】Jenkins 部署在 Tomcat 7 上失败,java.io.FileNotFoundException: http://localhost:8081/manager/text/list【英文标题】:Jenkins deploy fails on Tomcat 7, java.io.FileNotFoundException: http://localhost:8081/manager/text/list 【发布时间】:2016-01-07 01:21:24 【问题描述】:我的 Jenkins 部署失败,出现以下异常,我安装了部署插件,更新了 tomcat-users.xml 和各种用户,如下所示。
<user username="deployer" password="deployer" roles="manager-script"/>
<role rolename=”manager”/>
<role rolename=”admin”/>
<user username=”harpreet” password=”harpreet” `roles=”standard,manager,admin,manager-gui,manager-script” />`
使用以下信息更新了我的 jenkins 作业配置页面。
将 war/ear 部署到容器 WAR/EAR 文件 - **/*.war 上下文路径 - Barclays_Tokenization
容器 Tomcat 7.x 管理员用户名 - harpreet(我之前也尝试过部署器) 管理员密码 - ••••••••
Tomcat 网址 - http://localhost:8081
不确定是什么问题。任何帮助将不胜感激。 我是 Java 开发的新手。 任何回应表示赞赏。谢谢
org.codehaus.cargo.container.ContainerException: Failed to redeploy [C:\Program Files (x86)\Jenkins\jobs\Barclays_Tokenization\workspace\target\Barclays_Tokenization-V-0.0.1.war]
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:193)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:73)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)
at hudson.FilePath.act(FilePath.java:991)
at hudson.FilePath.act(FilePath.java:969)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
at hudson.model.Run.execute(Run.java:1766)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)
Caused by: java.io.FileNotFoundException: http://localhost:8081/manager/text/list
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:544)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:686)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:699)
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:174)
... 16 more
java.io.FileNotFoundException: http://localhost:8081/manager/text/list
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:544)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:686)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:699)
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:174)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:73)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)
at hudson.FilePath.act(FilePath.java:991)
at hudson.FilePath.act(FilePath.java:969)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
at hudson.model.Run.execute(Run.java:1766)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)
Build step 'Deploy war/ear to a container' marked build as failure
【问题讨论】:
【参考方案1】:检查 catalina.base/webapps/manager/WEB-INF/web.xml
您似乎没有管理应用程序
【讨论】:
【参考方案2】:您是否检查过tomcat 中的webapps 文件夹,以确保它是否有管理器(文件夹)应用程序? 如果是,请检查您用于访问管理器应用程序的用户在 tomcat-users.xml 中分配了 manager-* 角色。
【讨论】:
以上是关于tongweb部署失败,在tomcat上部署正常的主要内容,如果未能解决你的问题,请参考以下文章