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_s…
Tag: tomcat9
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) o…
installing tomcat 9 on WSL
After installing tomcat 9 on WSL, it isn’t recognized by system. Since systemctl command doesn’t work on WSL, I used below command: returning I followed 2 ways to install, but the same problem occurred. References are: https://www.digitalocean.com/community/tutorials/install-tomcat-9-ubuntu-1804 h…
How to add rewrite rule to spring boot 2.3.1
I have a Spring Boot application based on this example. Now the question is how can I add rewrite rules to my application that add /index.html when user visit the root URL. I mean when user visit http://localhost:8080/my-app or http://localhost:8080/my-app/ then I redirect him or her to http://localhost:8080/…
Window 10 Getting tomcat 9 to work on https
My goal is to use javascript webkitGetUserMedia to access the webcam and use java WebSocket on my LAN Network. I using apache-tomcat-9.0.20 with apache-maven-3.6.3 and eclipse ide. I am able to access the http on my network just fine. However, with https I’m only able to access on the server itself. I h…
Attribute ServerContainer not found in ServletContext
In my Spring boot application i use also websockets. Everything works fine, as expected in production. Now i started to create UnitTests with Spring-Boot-Test. Every time i start a @SpringBootTest , i get following exception (shortened): Long Version Spring Websocket Config Class POM.XML Spring Application Cl…
Eclipse irreversible Dynamic Web Module 4.0 selection; Tomcat 9 doesn’t support it
I’m using Eclipse Oxygen.2 (4.7.2) on Windows 10 with Java 8. I have a faceted project I run inside Eclipse using Tomcat. I had been using Tomcat 8.5, but on a new system I upgraded to Tomcat 9. Of course I removed the Tomcat 8.5 server and server runtime within Eclipse, and added back a Tomcat 9 server…