I am getting the below error while running the automation and after completig it I am getting 0 percent results

0

[exec] Using CATALINA_OPTS: " -Dlogback.ContextSelector=JNDI -javaagent:C:\Work\Programs\jacoco\lib\jacocoagent.jar=output=tcpserver,append=false,includes=aws.bluage.l3.workshop.*" [exec] NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED 2025-06-09 23:13:45.128 - Checking for http://localhost:8080 - exception occurred : Connection refused: connect 2025-06-09 23:13:45.128 - Checking for http://localhost:8080 - return code : 500 / expected : 500 ==> ok ! [exec] Process on port 8080 killed 2025-06-09 23:13:45.656 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information 2025-06-09 23:13:47.660 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information 2025-06-09 23:13:49.663 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information 2025-06-09 23:13:51.666 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information 2025-06-09 23:13:53.677 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information 2025-06-09 23:13:55.692 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information 2025-06-09 23:13:57.695 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information 2025-06-09 23:13:59.699 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information 2025-06-09 23:14:01.706 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information 2025-06-09 23:14:03.718 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information 2025-06-09 23:14:05.730 - Checking for http://localhost:8080 - exception occurred : Connection refused: no further information

asked 5 days ago12 views
1 Answer
0

The error you're experiencing indicates that the Tomcat server is failing to start properly during the automation process. This is causing connection issues and preventing the automation from completing successfully, resulting in 0 percent results.

Several factors could be contributing to this problem:

  1. Port conflict: Another process might be using port 8080, preventing Tomcat from starting.

  2. Configuration issues: There may be problems with the Tomcat configuration files or application settings.

  3. Resource constraints: The server might not have enough resources (memory, CPU) to start properly.

  4. Java version mismatch: Ensure that the Java version used in the automation environment matches the one used in development.

  5. Permissions: The user running the automation might not have the necessary permissions to start the server or access required resources.

To troubleshoot this issue:

  1. Check if port 8080 is already in use by another process and free it if necessary.

  2. Review Tomcat's configuration files (server.xml, context.xml) for any errors.

  3. Examine the Tomcat logs (catalina.out or similar) for more detailed error messages.

  4. Verify that all required dependencies and libraries are present and correctly configured.

  5. Ensure that the user running the automation has the necessary permissions.

  6. Try increasing the timeout for establishing a connection to the container by setting the SAM_CLI_CONTAINER_CONNECTION_TIMEOUT environment variable to a higher value.

  7. If using Docker in your automation, make sure PrivilegedMode is enabled in your build configuration.

By addressing these potential issues, you should be able to get the Tomcat server to start properly during the automation process, allowing it to complete successfully and provide accurate results.
Sources
Tomcat server failed to start due to below error - Please help! | AWS re:Post
HTTP 502 while running a CodeBuild project | AWS re:Post

answered 5 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions