Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,884
Community Members
 
Community Events
168
Community Groups

Deploying to Tomcat fails because port is ignored

We are using Bamboo 6.3.1 build 60306. Trying to deploy a WAR file to Tomcat 8.5.24 using a built in Deploy Tomcat Application task from within Build. Tomcat manager URL is configured correctly:

http://<servername>:8080/manager

While running the task, it fails with the following error:

simple	15-Jun-2018 11:21:20	Trying to retrieve Tomcat details from http://<servername>/manager/text/serverinfo
error	15-Jun-2018 11:21:24	Could not list server info from /manager/text/serverinfo
error	15-Jun-2018 11:21:24	java.net.ConnectException: Connection refused: connect
error	15-Jun-2018 11:21:24		at java.net.DualStackPlainSocketImpl.connect0(Native Method)
error	15-Jun-2018 11:21:24		at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
error	15-Jun-2018 11:21:24		at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
error	15-Jun-2018 11:21:24		at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
error	15-Jun-2018 11:21:24		at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
error	15-Jun-2018 11:21:24		at java.net.PlainSocketImpl.connect(Unknown Source)
error	15-Jun-2018 11:21:24		at java.net.SocksSocketImpl.connect(Unknown Source)
error	15-Jun-2018 11:21:24		at java.net.Socket.connect(Unknown Source)
error	15-Jun-2018 11:21:24		at java.net.Socket.connect(Unknown Source)
error	15-Jun-2018 11:21:24		at java.net.Socket.<init>(Unknown Source)
error	15-Jun-2018 11:21:24		at java.net.Socket.<init>(Unknown Source)
error	15-Jun-2018 11:21:24		at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
error	15-Jun-2018 11:21:24		at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
error	15-Jun-2018 11:21:24		at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
error	15-Jun-2018 11:21:24		at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
error	15-Jun-2018 11:21:24		at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
error	15-Jun-2018 11:21:24		at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
error	15-Jun-2018 11:21:24		at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getTomcatVersionFromServerInfo(TomcatApplicationManagerImpl.java:298)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.confirmTomcatVersionThroughServerInfo(TomcatApplicationManagerImpl.java:255)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getURLPrefix(TomcatApplicationManagerImpl.java:241)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.undeployApplication(TomcatApplicationManagerImpl.java:144)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.plugins.tomcat.tasks.UndeployAppTask.execute(UndeployAppTask.java:57)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:284)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:223)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:284)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:111)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:71)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:185)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:120)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:113)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:113)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:126)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
error	15-Jun-2018 11:21:24		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
error	15-Jun-2018 11:21:24		at java.lang.Thread.run(Unknown Source)

Please note first line and that port is now missing. If we reconfigure Tomcat to use port 80, deploy would work. This is not a suitable workaround for the issue, we can't have Tomcat running on port 80 just to bypass this error.

What can we do?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

304 views 0 7
Read article

Atlassian Community Events