码迷,mamicode.com
首页 > Web开发 > 详细

无法加载JSP类

时间:2014-12-25 12:59:36      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:

HTTP Status 500 - java.lang.ClassFormatError: Incompatible magic value 0 in class file org/apache/jsp/properties_jsp


type Exception report

message java.lang.ClassFormatError: Incompatible magic value 0 in class file org/apache/jsp/properties_jsp

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

exception
javax.servlet.ServletException: java.lang.ClassFormatError: Incompatible magic value 0 in class file org/apache/jsp/properties_jsp
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

 

root cause
java.lang.ClassFormatError: Incompatible magic value 0 in class file org/apache/jsp/properties_jsp
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:800)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
java.net.URLClassLoader.access$100(URLClassLoader.java:71)
java.net.URLClassLoader$1.run(URLClassLoader.java:361)
java.net.URLClassLoader$1.run(URLClassLoader.java:355)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:354)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

 

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


Apache Tomcat/7.0.55


------解决的方法--------------------------------------------------------
文件损坏了应该是

.class文件的开始是一个魔数:0XCAFEBABE

你的jsp对应的.class可能损坏掉了,去把它删掉应该就OK 
------解决的方法--------------------------------------------------------
如tomcat,将类似tomcat6.0.24workCatalinalocalhost这个路径下的东西都删掉

无法加载JSP类

标签:

原文地址:http://www.cnblogs.com/dengjunwu/p/4184276.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!