On new server, i installed Tomcat through WHM. But i can’t restart tomcat from WHM. The cpanel script to restart tomcat /scripts/restartsrv_tomcat is also not working.
I found directly running tomcat startup file as user root will get the tomcat working.
To start Tomcat run
/usr/local/jakarta/tomcat/bin/startup.sh
To stop tomcat run
/usr/local/jakarta/tomcat/bin/shutdown.sh
Once you install servlet to a web site, it will show 404 error, you need to restart tomcat to get it working properly.