Solutions to java version problems that occur when deploying Tomcat to Ubuntu
Exception: Output in Catalina. out: startup failed due to previous errors
Output in localhost: unsupported major. minor version 51.0
In the final analysis, it is caused by the failure of the java high-version compiled class to run in the lower-version jdk. I have a new java environment variable. openjdk6 is selected by default when the server version system is installed, although the output result of the java-version command is 1.7 by using environment variables, tomcat installed in apt-get mode depends on its own libOpenJdk package. If the system has already installed openjdk, the system is used. As a result, even if it is a later version of tomcat 7 + self-configured java 1.7, the jdk called by tomcat is still 1.6.
Solution:
Uninstall OpenJDK1.6 of Ubuntu 12.04 and install apt-get tomcat7 directly. This will automatically install libOpenJDK 1.7. This problem has finally been solved;
Tomcat details: click here
Tomcat: click here
Load Balancing between Apache and multiple Tomcat clusters in Linux
Nginx Tomcat Cluster load balancing solution notes
Instance details Tomcat component installation + Nginx reverse proxy Tomcat + Apache use mod_jk and mod_proxy Reverse Proxy and load balancing
Build an Apache + Tomcat environment (JK deployment process)
In-depth analysis of Tomcat PDF