TomcatExpert

Cannot invoke Apache Tomcat manager

We are using tcServer in a maven environment to do software builds with Bamboo.  Yesterday morning the builds were doing fine.  Yesterday afternoon I started getting this error in the logs:

 

[INFO] ------------------------------------------------------------------------
05-Jan-2011 09:05:11 [INFO]
05-Jan-2011 09:05:11 [INFO] [liquibase:tag {execution: default}]
05-Jan-2011 09:05:11 [INFO] ------------------------------------------------------------------------
05-Jan-2011 09:05:12 [INFO] Executing on Database: jdbc:mysql://wingshourly:3306/wings_qa
05-Jan-2011 09:05:12 Jan 5, 2011 9:05:12 AM liquibase.logging.jvm.JavaUtilLogger info
05-Jan-2011 09:05:12 INFO: Successfully acquired change log lock
05-Jan-2011 09:05:12 Jan 5, 2011 9:05:12 AM liquibase.logging.jvm.JavaUtilLogger info
05-Jan-2011 09:05:12 INFO: Reading from `DATABASECHANGELOG`
05-Jan-2011 09:05:12 Jan 5, 2011 9:05:12 AM liquibase.logging.jvm.JavaUtilLogger info
05-Jan-2011 09:05:12 INFO: Successfully released change log lock
05-Jan-2011 09:05:12 Jan 5, 2011 9:05:12 AM liquibase.logging.jvm.JavaUtilLogger info
05-Jan-2011 09:05:12 INFO: Successfully released change log lock
05-Jan-2011 09:05:12 [INFO] ------------------------------------------------------------------------
05-Jan-2011 09:05:12 [INFO]
05-Jan-2011 09:05:13 [INFO] [tomcat:redeploy {execution: tcserver-deploy}]
05-Jan-2011 09:05:13 [INFO] Deploying war to http://wingshourly/wings 
05-Jan-2011 09:05:13 [INFO] ------------------------------------------------------------------------
05-Jan-2011 09:05:13 [ERROR] BUILD ERROR
05-Jan-2011 09:05:13 [INFO] ------------------------------------------------------------------------
05-Jan-2011 09:05:13 [INFO] Cannot invoke Tomcat manager
05-Jan-2011 09:05:13  
05-Jan-2011 09:05:13 Embedded error: Connection refused
05-Jan-2011 09:05:13 [INFO] ------------------------------------------------------------------------
05-Jan-2011 09:05:13 [INFO] For more information, run Maven with the -e switch
05-Jan-2011 09:05:13 [INFO] ------------------------------------------------------------------------
05-Jan-2011 09:05:13 [INFO] Total time: 3 minutes 57 seconds
05-Jan-2011 09:05:13 [INFO] Finished at: Wed Jan 05 09:05:13 CST 2011
05-Jan-2011 09:05:14 [INFO] Final Memory: 63M/181M
05-Jan-2011 09:05:14 [INFO] ------------------------------------------------------------------------

Hoping someone has an answer as to how to fix the issue.  I have rebooted the server several times which usually fixes the issue but it is still occuring.

asked by wtb1

question

hi wtb1,
Looks like Bamboo is starting up a tomcat/tcserver instance, and then connecting to the manager application.

05-Jan-2011 09:05:13     [INFO] Cannot invoke Tomcat manager
05-Jan-2011 09:05:13     
05-Jan-2011 09:05:13     Embedded error: Connection refused

The last line of this error, indicates that there is no process listening on this port. This could be because

1. The server it tried to start failed to start
Resolution: Look in the server logs and find out why the server failed to start

2. The build is failing to launch the server
Resolution: look at bamboo logs to see what is going on

3. The server is started, but listening on a different port
Resolution: Correct the port in the server or in bamboo

best
Filip
 

answer

answered by fhanik on June 16, 2011 11:36 AM

Filip Hanik is a Senior Software Engineer for the SpringSource Division of VMware, Inc. (NYSE: VMW) and a key participant in the company's Apache Tomcat initiatives. Filip brings 15 years of extensive experience in architecture, design and development of distributed application frameworks and containers and is recognized for his top-quality system development skills and continuous participation of Open Source development projects. Filip is an Apache Software Foundation member and a committer to the Apache Tomcat project where he is a leading authority on Tomcat clustering and a key contributor to the core of the platform. Filip has made contributions to software initiatives for Walmart.com, Sony Music, France Telecom and has held a variety of senior software engineering positions with technology companies in both the United States and Sweden. He received his education at Chalmers University of Technology in Gothenburg, Sweden where he majored in Computer Science and Computer Engineering.

Comments

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.