当前位置: 代码迷 >> Java Web开发 >> org.apache.catalina.loader.WebappClassLoader.loadClass(
  详细解决方案

org.apache.catalina.loader.WebappClassLoader.loadClass(

热度:785   发布时间:2016-04-17 13:17:59.0
JDK 与 tomcat 匹配吗?
初学者,求助:
我安装的是   jdk-1_5_0_07-windows-i586-p.exe     jakarta-tomcat-5.5.9.exe   这两个可以匹配吗?
  测试来看好像能用,但是再做东西时出现下面的错误提示,是为什么?谢谢!!

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

exception  

javax.servlet.ServletException:   Bad   version   number   in   .class   file
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root   cause  

java.lang.UnsupportedClassVersionError:   Bad   version   number   in   .class   file
java.lang.ClassLoader.defineClass1(Native   Method)
java.lang.ClassLoader.defineClass(Unknown   Source)
java.security.SecureClassLoader.defineClass(Unknown   Source)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1210)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Generator.generate(Generator.java:3270)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note   The   full   stack   trace   of   the   root   cause   is   available   in   the   Apache   Tomcat/5.5.9   logs.



------解决方案--------------------
完全可以匹配 这是你程序的问题
------解决方案--------------------
是的
------解决方案--------------------
环境没问题,程序问题。
------解决方案--------------------
应该!
代码迷推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.daimami.com/search?q=317
  相关解决方案