I found a solution for this. There Java web hosting and web hosting. The big difference between these web hosting services is that Java Web Hosting supports web applications created using virtual servers such as Tomcat and GlassFish, among others.
Therefore, anyone looking to deploy a web application built using Java or JavaEE technology should look for Java web hosting instead of web hosting. You can find more information about Java web hosting providers.
For example, eApps is one of the providers of Java web hosting.
source share