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. |