Solution exception: Catalina. output in out: Output in startupfailedduetopreviouserrorslocalhost: unsupportedmajor. minorversion51.0 is ultimately 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, se
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
Related reading:
Load Balancing between Apache and multiple Tomcat clusters in LinuxHttp://www.linuxidc.com/Linux/2012-01/51731.htm
Nginx Tomcat Cluster load balancing solution notes http://www.linuxidc.com/Linux/2013-07/86827.htm
Example details Tomcat component installation + Nginx reverse proxy Tomcat + Apache use mod_jk and mod_proxy Reverse Proxy and load balancing http://www.linuxidc.com/Linux/2013-06/85290.htm
Apache + Tomcat environment setup (JK deployment process) http://www.linuxidc.com/Linux/2012-11/74474.htm
In-depth analysis of Tomcat PDF http://www.linuxidc.com/Linux/2013-11/92595.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2