maven - War File not deploying properly with Jenkins -
with jenkins, build completed , has used source code management git.i using maven build project.but war file not deployed properly. tomcat users.xml file has content:
<role rolename="manager-gui"/> <role rolename="manager-script"/> <user username="admin" password="admin" roles="manager-gui,manager-script"/>
this stack trace of error :
**
[info] building war: /root/.jenkins/workspace/first maven project/target/hfcl.war [info] ------------------------------------------------------------------------ [info] build success [info] ------------------------------------------------------------------------ [info] total time: 12.329s [info] finished at: fri sep 08 16:49:20 ist 2017 [info] final memory: 31m/279m [info] ------------------------------------------------------------------------ waiting jenkins finish collecting data [jenkins] archiving /root/.jenkins/workspace/first maven project/pom.xml hfcl/hfcl/0.0.1-snapshot/hfcl-0.0.1-snapshot.pom [jenkins] archiving /root/.jenkins/workspace/first maven project/target/hfcl.war hfcl/hfcl/0.0.1-snapshot/hfcl-0.0.1-snapshot.war channel stopped deploying /root/.jenkins/workspace/first maven project/target/hfcl.war container tomcat 8.x remote context hfcl [/root/.jenkins/workspace/first maven project/target/hfcl.war] not deployed. doing fresh deployment. deploying [/root/.jenkins/workspace/first maven project/target/hfcl.war] error: build step failed exception org.codehaus.cargo.container.containerexception: failed deploy [/root/.jenkins/workspace/first maven project/target/hfcl.war] @ org.codehaus.cargo.container.tomcat.internal.abstracttomcatmanagerdeployer.deploy(abstracttomcatmanagerdeployer.java:106) @ org.codehaus.cargo.container.tomcat.internal.abstracttomcatmanagerdeployer.redeploy(abstracttomcatmanagerdeployer.java:184) @ 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:998) @ hudson.filepath.act(filepath.java:976) @ 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:736) @ hudson.model.abstractbuild$abstractbuildexecution.performallbuildsteps(abstractbuild.java:682) @ hudson.maven.mavenmodulesetbuild$mavenmodulesetbuildexecution.post2(mavenmodulesetbuild.java:1072) @ hudson.model.abstractbuild$abstractbuildexecution.post(abstractbuild.java:627) @ hudson.model.run.execute(run.java:1764) @ hudson.maven.mavenmodulesetbuild.run(mavenmodulesetbuild.java:542) @ hudson.model.resourcecontroller.execute(resourcecontroller.java:97) @ hudson.model.executor.run(executor.java:419) caused by: org.codehaus.cargo.container.tomcat.internal.tomcatmanagerexception: tomcat manager responded "fail - deployed application @ context path [/hfcl] context failed start " instead of expected "ok" message @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.invoke(tomcatmanager.java:715) @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.deployimpl(tomcatmanager.java:761) @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.deploy(tomcatmanager.java:312) @ org.codehaus.cargo.container.tomcat.internal.abstracttomcatmanagerdeployer.deploy(abstracttomcatmanagerdeployer.java:101) ... 18 more org.codehaus.cargo.container.tomcat.internal.tomcatmanagerexception: tomcat manager responded "fail - deployed application @ context path [/hfcl] context failed start " instead of expected "ok" message @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.invoke(tomcatmanager.java:715) @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.deployimpl(tomcatmanager.java:761) @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.deploy(tomcatmanager.java:312) @ org.codehaus.cargo.container.tomcat.internal.abstracttomcatmanagerdeployer.deploy(abstracttomcatmanagerdeployer.java:101) @ org.codehaus.cargo.container.tomcat.internal.abstracttomcatmanagerdeployer.redeploy(abstracttomcatmanagerdeployer.java:184) @ 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:998) @ hudson.filepath.act(filepath.java:976) @ 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:736) @ hudson.model.abstractbuild$abstractbuildexecution.performallbuildsteps(abstractbuild.java:682) @ hudson.maven.mavenmodulesetbuild$mavenmodulesetbuildexecution.post2(mavenmodulesetbuild.java:1072) @ hudson.model.abstractbuild$abstractbuildexecution.post(abstractbuild.java:627) @ hudson.model.run.execute(run.java:1764) @ hudson.maven.mavenmodulesetbuild.run(mavenmodulesetbuild.java:542) @ hudson.model.resourcecontroller.execute(resourcecontroller.java:97) @ hudson.model.executor.run(executor.java:419) build step 'deploy war/ear container' marked build failure finished: failure
**
configurations in tomcat jenkins follows :
can suggest missing ?
Comments
Post a Comment