[JIRA] (JENKINS-15044) Tomcat deployment Fails when using Deploy To Container plugin

843 views
Skip to first unread message

jgriffith@picsauditing.com (JIRA)

unread,
Sep 4, 2012, 7:49:49 PM9/4/12
to jenkinsc...@googlegroups.com
Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Components: deploy
Created: 04/Sep/12 11:49 PM
Description:

When using the deploy to container plugin to deploy to a Tomcat 7 container, I get the following error:
Deploying /var/lib/jenkins/jobs/Demo1/workspace/target/ROOT.war to container Tomcat 7.x Remote
ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception
org.codehaus.cargo.container.ContainerException: Failed to redeploy [/var/lib/jenkins/jobs/Demo1/workspace/target/ROOT.war]
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:195)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77)
at hudson.FilePath.act(FilePath.java:842)
at hudson.FilePath.act(FilePath.java:824)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
at hudson.model.Run.execute(Run.java:1527)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Caused by: java.io.FileNotFoundException: http://demo1-vm.picsauditing.com:8080/manager//manager/text/list
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:504)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:622)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:635)
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:176)
... 16 more
java.io.FileNotFoundException: http://demo1-vm.picsauditing.com:8080/manager//manager/text/list
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:504)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:622)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:635)
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:176)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77)
at hudson.FilePath.act(FilePath.java:842)
at hudson.FilePath.act(FilePath.java:824)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
at hudson.model.Run.execute(Run.java:1527)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)

Environment: CentOS 6.3
Project: Jenkins
Priority: Major Major
Reporter: Jared Griffith
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

trexter@gmx.de (JIRA)

unread,
Oct 10, 2012, 5:14:42 AM10/10/12
to jenkinsc...@googlegroups.com

You noticed the double slash in the URL and the two "manager" parts!?

You have to set the Tomcat URL in the job plugin configuration to http://demo1-vm.picsauditing.com:8080

See also http://cargo.codehaus.org/Tomcat+7.x at the end of the page:

"With Tomcat 7, the Tomcat manager has multiple aspects to be careful about:

Your browser by default accesses the HTML-based manager whereas CARGO needs to use the text-based manager. As a result, if you want to set the RemotePropertySet.URI manually, please make sure you set the URL for the text-based manager, for example http://production27:8080/manager/text
The text-based manager requires to be accessed by a user with the manager-script role; and by default no user has that role. As a result, please make sure you modify your tomcat-users.xml file to give that role to a user.

You can read more on the Tomcat documentation: http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html"

jgriffith@picsauditing.com (JIRA)

unread,
Oct 10, 2012, 5:22:42 PM10/10/12
to jenkinsc...@googlegroups.com

I think the initial configuration was set with the manager in the URL. I changed it and it's working now.
Now, will there ever be the ability to deploy to multiple containers from within the same job (like Bamboo currently has)?
P.S. I am a much bigger fan of your application, and am trying to remove Bamboo completely from our application building process for various reasons.

trexter@gmx.de (JIRA)

unread,
Oct 11, 2012, 3:47:42 AM10/11/12
to jenkinsc...@googlegroups.com
Daniel Barth resolved Bug JENKINS-15044 as Not A Defect

URL parameter was wrong. It's working now.

Change By: Daniel Barth (11/Oct/12 7:47 AM)
Status: Open Resolved
Assignee: Daniel Barth
Fix Version/s: current
Resolution: Not A Defect

trexter@gmx.de (JIRA)

unread,
Oct 11, 2012, 3:58:42 AM10/11/12
to jenkinsc...@googlegroups.com

@Jared Griffith: I closed the issue for you. Regarding your last comment you may have a look at issue 14949?

https://issues.jenkins-ci.org/browse/JENKINS-14949

trexter@gmx.de (JIRA)

unread,
Oct 11, 2012, 4:00:43 AM10/11/12
to jenkinsc...@googlegroups.com
 
Daniel Barth edited a comment on Bug JENKINS-15044

@Jared Griffith: I closed the issue for you. Regarding your last comment you may have a look at issue 14949?

https://issues.jenkins-ci.org/browse/JENKINS-14949

PS: I'm currently not "officially" involved with the Jenkins project or this plugin, but I'm thinking about to change
that, because I would like to use this plugin for our production environment as well.

jgriffith@picsauditing.com (JIRA)

unread,
Oct 11, 2012, 11:54:43 AM10/11/12
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages