Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

194 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you