- Newest
- Most votes
- Most comments
Tomcat is instructed to be stopped in one of the steps in the automated test (Execution.xml). It is instructed to stop after all the test cases are executed. As long as your test result is OK and you have the file generated, you are fine with the scheduled shutdown of Tomcat. I find it helpful to postpone the shutdown and shutdown it gracefully after the dump of the Jacoco report. You can reorder the Excution.xml and add some debug messages to help you understand if Tomcat is shutting down in the way you exception. Check the log in the Tomcat log folder and the execution.log.
answered 2 years ago
The issue you're experiencing appears to be related to the Tomcat server shutting down after the batch tests and not starting up properly for the online tests. This is evident from the repeated "Connection refused" errors when trying to access http://localhost:8080.
There could be several reasons for this problem:
-
Configuration issues: There might be a problem with the Tomcat configuration files or the application's configuration that's preventing it from starting correctly.
-
Port conflicts: Another process might be using port 8080, preventing Tomcat from binding to it.
-
JVM or memory issues: The Java Virtual Machine might be encountering problems that cause it to shut down unexpectedly.
-
Database connection problems: If the application relies on a database, issues with the database connection could prevent Tomcat from starting properly.
-
Classpath or dependency issues: There might be missing or conflicting dependencies in the classpath.
To troubleshoot this issue:
-
Check the Tomcat logs (catalina.out or similar) for any error messages that might indicate why the server is shutting down.
-
Verify that no other process is using port 8080.
-
Review the application's configuration files, especially database connection settings.
-
Ensure all required dependencies are present and correctly configured in the classpath.
-
Try starting Tomcat manually to see if you can reproduce the issue and gather more information.
-
Review recent changes to the application or environment that might have introduced this problem.
If the issue persists, you may need to enable more detailed logging or use remote debugging to identify the root cause of the problem.
Sources
Tomcat isn't starting in AWS Blu Age L3 Workshop | AWS re:Post
Troubleshooting Systems Manager Automation - AWS Systems Manager
Relevant content
- AWS OFFICIALUpdated 3 years ago

Hi Kelvin, thanks I waited for some time the next step started. But now I am facing with the another issue unload bluesam. I think you were also facing same issue, is it resolved? Unexpected error while exporint datasets to file system [exec] com.netfective.bluage.gapwalk.bluesam.core.metadata.DeserializationException: Expected token: }, read token: persistenceId