Hiya Guys.

For newbies working on cPanel server with tomcat, you might receive error as in subject. Don't panic. Perform the steps below & it will fix your problems with tomcat.

This is when JAVA_HOME and JRE_HOME path is not defined on the server. You must set the paths on the server for JAVA_HOME and JRE_HOME.

JAVA_HOME
[root@hoststopuk] export JAVA_HOME=/usr/local/java
JRE_HOME
[root@hoststopuk] export JRE_HOME=/usr/local/jdk
Start/Stop tomcat on the server.