Fail deploy from jenkins to Tomcat 7 -
i have jenkins running on openshift , need build , deploy application tomcat. can´t deploy application tomcat 7. obs: tomcat 7 running on computer. following error:
started user jenkins admin building in workspace /var/lib/openshift/553bb7984382ecc5ce00009f/app-root/data/jobs/teste1/workspace checkout:workspace / /var/lib/openshift/553bb7984382ecc5ce00009f/app-root/data/jobs/teste1/workspace - hudson.remoting.localchannel@1ef62e0 using strategy: default last built revision: revision c8de886c2a824bdb4db4a70f757a891155ad9611 (origin/head, origin/master) checkout:workspace / /var/lib/openshift/553bb7984382ecc5ce00009f/app-root/data/jobs/teste1/workspace - hudson.remoting.localchannel@1ef62e0 fetching changes 1 remote git repository fetching upstream changes https://github.com/bergmpe/mysite.git seen branch in repository origin/head seen branch in repository origin/master commencing build of revision c8de886c2a824bdb4db4a70f757a891155ad9611 (origin/head, origin/master) checking out revision c8de886c2a824bdb4db4a70f757a891155ad9611 (origin/head, origin/master) warning : there multiple branch changesets here [workspace] $ /var/lib/openshift/553bb7984382ecc5ce00009f/app-root/data/tools/hudson.tasks.ant_antinstallation/myant/bin/ant buildfile: /var/lib/openshift/553bb7984382ecc5ce00009f/app-root/data/jobs/teste1/workspace/build.xml init: compile: [javac] /var/lib/openshift/553bb7984382ecc5ce00009f/app-root/data/jobs/teste1/workspace/build.xml:41: warning: 'includeantruntime' not set, defaulting build.sysclasspath=last; set false repeatable builds compile-tests: [javac] /var/lib/openshift/553bb7984382ecc5ce00009f/app-root/data/jobs/teste1/workspace/build.xml:46: warning: 'includeantruntime' not set, defaulting build.sysclasspath=last; set false repeatable builds [javac] compiling 1 source file /var/lib/openshift/553bb7984382ecc5ce00009f/app-root/data/jobs/teste1/workspace/build/test-classes test: [junit] running com.berg.numeroperfeitotest [junit] tests run: 2, failures: 0, errors: 0, skipped: 0, time elapsed: 0.09 sec package: build successful total time: 3 seconds deploying /var/lib/openshift/553bb7984382ecc5ce00009f/app-root/data/jobs/teste1/workspace/dist/num-perfeito-1.0.war container tomcat 7.x remote error: publisher hudson.plugins.deploy.deploypublisher aborted due exception org.codehaus.cargo.container.containerexception: failed redeploy [/var/lib/openshift/553bb7984382ecc5ce00009f/app-root/data/jobs/teste1/workspace/dist/num-perfeito-1.0.war] @ org.codehaus.cargo.container.tomcat.internal.abstracttomcatmanagerdeployer.redeploy(abstracttomcatmanagerdeployer.java:193) @ hudson.plugins.deploy.cargocontaineradapter.deploy(cargocontaineradapter.java:73) @ hudson.plugins.deploy.cargocontaineradapter$1.invoke(cargocontaineradapter.java:116) @ hudson.plugins.deploy.cargocontaineradapter$1.invoke(cargocontaineradapter.java:103) @ hudson.filepath.act(filepath.java:920) @ hudson.filepath.act(filepath.java:893) @ hudson.plugins.deploy.cargocontaineradapter.redeploy(cargocontaineradapter.java:103) @ hudson.plugins.deploy.deploypublisher.perform(deploypublisher.java:61) @ hudson.tasks.buildstepmonitor$3.perform(buildstepmonitor.java:45) @ hudson.model.abstractbuild$abstractbuildexecution.perform(abstractbuild.java:756) @ hudson.model.abstractbuild$abstractbuildexecution.performallbuildsteps(abstractbuild.java:720) @ hudson.model.build$buildexecution.post2(build.java:182) @ hudson.model.abstractbuild$abstractbuildexecution.post(abstractbuild.java:669) @ hudson.model.run.execute(run.java:1731) @ hudson.model.freestylebuild.run(freestylebuild.java:43) @ hudson.model.resourcecontroller.execute(resourcecontroller.java:88) @ hudson.model.executor.run(executor.java:232) caused by: java.net.connectexception: connection timed out @ java.net.plainsocketimpl.socketconnect(native method) @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:339) @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:200) @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:182) @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392) @ java.net.socket.connect(socket.java:579) @ java.net.socket.connect(socket.java:528) @ sun.net.networkclient.doconnect(networkclient.java:180) @ sun.net.www.http.httpclient.openserver(httpclient.java:432) @ sun.net.www.http.httpclient.openserver(httpclient.java:527) @ sun.net.www.http.httpclient.<init>(httpclient.java:211) @ sun.net.www.http.httpclient.new(httpclient.java:308) @ sun.net.www.http.httpclient.new(httpclient.java:326) @ sun.net.www.protocol.http.httpurlconnection.getnewhttpclient(httpurlconnection.java:997) @ sun.net.www.protocol.http.httpurlconnection.plainconnect(httpurlconnection.java:933) @ sun.net.www.protocol.http.httpurlconnection.connect(httpurlconnection.java:851) @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.invoke(tomcatmanager.java:534) @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.list(tomcatmanager.java:686) @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.getstatus(tomcatmanager.java:699) @ org.codehaus.cargo.container.tomcat.internal.abstracttomcatmanagerdeployer.redeploy(abstracttomcatmanagerdeployer.java:174) ... 16 more java.net.connectexception: connection timed out @ java.net.plainsocketimpl.socketconnect(native method) @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:339) @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:200) @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:182) @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392) @ java.net.socket.connect(socket.java:579) @ java.net.socket.connect(socket.java:528) @ sun.net.networkclient.doconnect(networkclient.java:180) @ sun.net.www.http.httpclient.openserver(httpclient.java:432) @ sun.net.www.http.httpclient.openserver(httpclient.java:527) @ sun.net.www.http.httpclient.<init>(httpclient.java:211) @ sun.net.www.http.httpclient.new(httpclient.java:308) @ sun.net.www.http.httpclient.new(httpclient.java:326) @ sun.net.www.protocol.http.httpurlconnection.getnewhttpclient(httpurlconnection.java:997) @ sun.net.www.protocol.http.httpurlconnection.plainconnect(httpurlconnection.java:933) @ sun.net.www.protocol.http.httpurlconnection.connect(httpurlconnection.java:851) @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.invoke(tomcatmanager.java:534) @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.list(tomcatmanager.java:686) @ org.codehaus.cargo.container.tomcat.internal.tomcatmanager.getstatus(tomcatmanager.java:699) @ org.codehaus.cargo.container.tomcat.internal.abstracttomcatmanagerdeployer.redeploy(abstracttomcatmanagerdeployer.java:174) @ hudson.plugins.deploy.cargocontaineradapter.deploy(cargocontaineradapter.java:73) @ hudson.plugins.deploy.cargocontaineradapter$1.invoke(cargocontaineradapter.java:116) @ hudson.plugins.deploy.cargocontaineradapter$1.invoke(cargocontaineradapter.java:103) @ hudson.filepath.act(filepath.java:920) @ hudson.filepath.act(filepath.java:893) @ hudson.plugins.deploy.cargocontaineradapter.redeploy(cargocontaineradapter.java:103) @ hudson.plugins.deploy.deploypublisher.perform(deploypublisher.java:61) @ hudson.tasks.buildstepmonitor$3.perform(buildstepmonitor.java:45) @ hudson.model.abstractbuild$abstractbuildexecution.perform(abstractbuild.java:756) @ hudson.model.abstractbuild$abstractbuildexecution.performallbuildsteps(abstractbuild.java:720) @ hudson.model.build$buildexecution.post2(build.java:182) @ hudson.model.abstractbuild$abstractbuildexecution.post(abstractbuild.java:669) @ hudson.model.run.execute(run.java:1731) @ hudson.model.freestylebuild.run(freestylebuild.java:43) @ hudson.model.resourcecontroller.execute(resourcecontroller.java:88) @ hudson.model.executor.run(executor.java:232) finished: failure
i put jenkins.war
webapps
directory,and access http://localhost:8080/jenkins
,this worked me.
Comments
Post a Comment