I have a simple spring boot app which has just 2 rest controllers and I am exporting the war for the same. I am deploying the same war using the tomcat manager on EC2 instance on AWS, but unfortunately I am getting http status 404 when trying to hit the API. URL that I am trying to hit is –
Tag: tomcat
Unable to connect to tomcat 9 for remote debugging via eclipse
My spring web app is deployed on a different machine with below env: window machine apache-tomcat-9.0.67 jdk-13.0.2 I tried to remote connect it via eclipse by adding below command in startup.bat or catalina.bat and then running The server in the console is showing that the “Listening for transport dt_socket at address: 8000” But when i try to connect with the
How to add health endpoint in Apache Tomcat 9?
I am using Apache Tomcat 9 server as a Maven dependency in my project. It is working fine and now I need to add a health endpoint so that it will return 200 OK if everything is running fine. I came to know about HealthCheckValve (https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Health_Check_Valve) option in Tomcat 9 which is helpful. But I am not been able to
Force deploy of web application to fail on Tomcat
We are researching the possibility to migrate some web JSF applications from Payara 5 to Tomcat 9 (TomEE 8). We are using Java 11 and Java EE 7/8. Our applications connect to a backend server using RMI. At the moment, with Payara 5, when the code that connects us to the backend server fails (exception is thrown because server is
Container Fails to Start: Insufficient memory for the Java Runtime Environment to continue
We have an enterprise application running on Java 8. The deployment environment is built & updated through Bitbucket pipelines. I have a graphic showing the high-level architecture of the environment. We have two app servers running identical configurations apart from some application specific environment variables. It was all working well until a week ago when after a successful pipeline run,
Measure memory consumption with all HttpSessions in Tomcat at an arbitrary point in time
I want to measure the percentage of memory used by HttpSession in a web application. Is there any way to measure memory consumption with all HttpSessions in a running Tomcat instance at an arbitrary point in time without modifying the application? What I have tried In Tomcat, the concrete class of HttpSession is org.apache.catalina.session.StandardSession. I have profiled the application with
h2 console not being found in browser while running springboot application
Im trying to get the h2 console in my browser while my my Springboot application. Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Sun Apr 24 00:44:22 IST 2022 There was an unexpected error (type=Not Found, status=404). This is my application.properties file I have tried both and This is
Spring Boot – Controller is recognised but the api is not binded
I have two files in my application. The Main class file. The controller class. My application.properties looks like : Here’s what my console looks like : I tried hitting the api with the url : http://localhost:8080/util-service/util and this throws up a 404 error. So even though the controller is picked up for component scanning(according to the logs), the request within
Simple Embedded Tomcat 10 Example
I’m trying to get a simple embedded tomcat 10.1.0-M11 example working but I keep getting localhost refused to connect when I go to http://localhost:8080/aa. There is no StackOverflow label yet for embedded-tomcat-10. Here is my code: Dependencies UPDATE I have gone through every single version I found that this bug was introduced in version 9.0.0.M4 and never resolved since then.
Log4j2 tomcat 10 memory leaks on shutdown
I have memory leaks at my tomcat 10.0.16 servlet application. I am using Log4j2 2.17.2 version, and after tomcat shutdown I see next logs: My pom.xml for Log4j2 is: And also log4j2 config Most common fix is to add log4j-jakarta-web, but this does not works for me Answer Fully deleting target folder and recompiling my project seems like resolved my