Java. lang. UnsupportedClassVersionError

Source: Internet
Author: User
For details about java. lang. UnsupportedClassVersionError -- Linux general technology-Linux programming and kernel, refer to the following. Run a simple Servlet under Fedora 8 and the following error occurs:
CODE: type Exception report

Message

Description The server encountered an internal error () that prevented it from fulfilling this request.

Exception
Javax. servlet. ServletException: Error allocating a servlet instance
Org. apache. catalina. valves. ErrorReportValve. invoke (ErrorReportValve. java: 117)
Org. apache. catalina. connector. CoyoteAdapter. service (CoyoteAdapter. java: 174)
Org. apache. coyote. http11.Http11AprProcessor. process (Http11AprProcessor. java: 834)
Org. apache. coyote. http11.Http11AprProtocol $ Http11ConnectionHandler. process (Http11AprProtocol. java: 640)
Org.apache.tomcat.util.net. AprEndpoint $ Worker. run (AprEndpoint. java: 1286)
Java. lang. Thread. run (threads. java: 675)

Root cause
Java. lang. UnsupportedClassVersionError: servlet/HelloWorld: Unsupported major. minor version 51.0
Java. lang. ClassLoader. defineClass1 (Native Method)
Java. lang. ClassLoader. defineClass (ClassLoader. java: 638)
Java. security. SecureClassLoader. defineClass (SecureClassLoader. java: 143)
Org. apache. catalina. loader. WebappClassLoader. findClassInternal (WebappClassLoader. java: 1853)
Org. apache. catalina. loader. WebappClassLoader. findClass (WebappClassLoader. java: 875)
Org. apache. catalina. loader. WebappClassLoader. loadClass (WebappClassLoader. java: 1330)
Org. apache. catalina. loader. WebappClassLoader. loadClass (WebappClassLoader. java: 1209)
Org. apache. catalina. valves. ErrorReportValve. invoke (ErrorReportValve. java: 117)
Org. apache. catalina. connector. CoyoteAdapter. service (CoyoteAdapter. java: 174)
Org. apache. coyote. http11.Http11AprProcessor. process (Http11AprProcessor. java: 834)
Org. apache. coyote. http11.Http11AprProtocol $ Http11ConnectionHandler. process (Http11AprProtocol. java: 640)
Org.apache.tomcat.util.net. AprEndpoint $ Worker. run (AprEndpoint. java: 1286)
Java. lang. Thread. run (threads. java: 675)

Note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
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.