zoukankan      html  css  js  c++  java
  • HTTP Status 500

    我在项目中导入了jar,还是不能使用EL表达式,一运行就出现了下面的额错误:

    org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/LoopTag
        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
        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)
        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
        org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:170)
        org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:316)
        org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1370)
        org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1116)
        org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1055)
        org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
        org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

    在Maven的pom.xml中加入下面的依赖:

       <dependency>
          <groupId>org.apache.taglibs</groupId>
          <artifactId>taglibs-standard-compat</artifactId>
          <version>1.2.5</version>
        </dependency>
        <dependency>
          <groupId>org.apache.taglibs</groupId>
          <artifactId>taglibs-standard-impl</artifactId>
          <version>1.2.5</version>
        </dependency>
        <dependency>
          <groupId>org.apache.taglibs</groupId>
          <artifactId>taglibs-standard-spec</artifactId>
          <version>1.2.5</version>
        </dependency>
        <dependency>
          <groupId>org.apache.taglibs</groupId>
          <artifactId>taglibs-standard-jstlel</artifactId>
          <version>1.2.5</version>
          <scope>provided</scope>
        </dependency>

    就不会报错了

  • 相关阅读:
    文本每行都应该换行——vi文件末尾自动换行,不会导致php输出空行
    路由器 DNSMasq 替代 hosts,支持Android、iPhone、PC
    互联网创业的准备——web server:apache、nginx、lighttpd与php module、fastcgi
    dev qa prod
    互联网创业的准备——框架:从MVC到开放API
    Realtek 8192cu win8 驱动
    Win8 RTM 安装到 UEFI PC
    互联网创业的准备——数据库:硬盘iops、mysql
    互联网创业的准备——数据备份
    互联网创业的准备——依赖服务:云主机、域名、代码库
  • 原文地址:https://www.cnblogs.com/rao11/p/11624488.html
Copyright © 2011-2022 走看看