TomcatUbuntu deployment problems

Source: Internet
Author: User
Tags nginx reverse proxy
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.