HTTP状态500 - java.lang.NoClassDefFoundError:无法初始化类org.apache.jasper.el.E​​LContextImpl [英] HTTP Status 500 - java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImpl

查看:2012
本文介绍了HTTP状态500 - java.lang.NoClassDefFoundError:无法初始化类org.apache.jasper.el.E​​LContextImpl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在myeclipse上浏览localhost:8080时,我收到以下错误:

When I try to browse "localhost:8080" on myeclipse, I get the following error:

type Exception report

message java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImpl

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

exception 

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImpl
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)


root cause 

java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImpl
    org.apache.jasper.compiler.Validator$ValidateVisitor.prepareExpression(Validator.java:1568)
    org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:747)
    org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:954)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:475)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
    org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1795)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:217)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
    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:728)


推荐答案

您是否尝试在Jetty服务器上运行Web应用程序?错误NoClassDefFoundError意味着您没有运行该代码所需的jar文件。

Are you trying to run a Web app on Jetty server? The error NoClassDefFoundError means you do not have the jar file required to run that code.

以下是关于同一问题的stackoverflow问题。

Here is the stackoverflow question on the same issue.

org.apache.jasper.el.E​​LContextImpl无法强制转换为org.apache.jasper.runtime.ELContextImpl

如果您正在使用Eclipse IDE,我建议你下载Eclipse Jetty插件

If you are using the Eclipse IDE, I recommend you to download the Eclipse Jetty plugin

https://code.google.com/p/run-jetty-run/

或在你的日食下帮助 - >市场 - >输入'jetty'或'jetty plugin'然后下载run-jetty-run插件

or in your eclipse under help -> Market place -> enter 'jetty' or 'jetty plugin' then download run-jetty-run plugin

这篇关于HTTP状态500 - java.lang.NoClassDefFoundError:无法初始化类org.apache.jasper.el.E​​LContextImpl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆