Org.apache.jasper.JasperException

Source: Internet
Author: User

1. Error description

2014-7-13 17:20:50 org.apache.catalina.core.StandardWrapperValve Invoke Critical: Servlet.service () for Servlet [JSP] in Context with path [/FIRSTSSH] threw exception [/pages/student.jsp (Line:3, column:0)/pages/pathtags.jsp (line:1, Colum N:59) Attempt to redefine the prefix C-Http://java.sun.com/jstl/core, when it was already defined as HTTP://JAVA.SUN.C Om/jsp/jstl/core in the current scope. With root causeorg.apache.jasper.JasperException:/pages/student.jsp (Line:3, column:0)/pages/pathtags.jsp (Line:1, C OLUMN:59) Attempt to redefine the prefix C-Http://java.sun.com/jstl/core, when it was already defined as HTTP://JAVA.S Un.com/jsp/jstl/core in the current scope.at org.apache.jasper.compiler.DefaultErrorHandler.jspError ( defaulterrorhandler.java:42) at Org.apache.jasper.compiler.ErrorDispatcher.dispatch (errordispatcher.java:443) at Org.apache.jasper.compiler.ErrorDispatcher.jspError (errordispatcher.java:89) at Org.apache.jasper.compiler.Parser.processIncludeDirective (Parser.java:324) at Org.apache.jasper.compiler.Parser.parseIncludeDirective (parser.java:357) at Org.apache.jasper.compiler.Parser.parseDirective (parser.java:467) at Org.apache.jasper.compiler.Parser.parseElements (parser.java:1427) at Org.apache.jasper.compiler.Parser.parse ( parser.java:138) at Org.apache.jasper.compiler.ParserController.doParse (parsercontroller.java:242) at Org.apache.jasper.compiler.ParserController.parse (parsercontroller.java:102) at Org.apache.jasper.compiler.Compiler.generateJava (compiler.java:198) at Org.apache.jasper.compiler.Compiler.compile (compiler.java:373) at Org.apache.jasper.compiler.Compiler.compile ( compiler.java:353) at Org.apache.jasper.compiler.Compiler.compile (compiler.java:340) at Org.apache.jasper.JspCompilationContext.compile (jspcompilationcontext.java:657) at Org.apache.jasper.servlet.JspServletWrapper.service (jspservletwrapper.java:357) at Org.apache.jasper.servlet.JspServlet.serviceJspFile (jspservlet.java:390) at Org.apache.jasper.servlet.JspServlet.service (JSPSERVLET.Java:334) at Javax.servlet.http.HttpServlet.service (httpservlet.java:727) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:303) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:208) at Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter ( strutsprepareandexecutefilter.java:96) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( applicationfilterchain.java:241) at Org.apache.catalina.core.ApplicationFilterChain.doFilter ( applicationfilterchain.java:208) at Org.apache.catalina.core.StandardWrapperValve.invoke ( standardwrappervalve.java:220) at Org.apache.catalina.core.StandardContextValve.invoke (Standardcontextvalve.java : 122) at Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:501) at Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:170) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:98) at orG.apache.catalina.valves.accesslogvalve.invoke (accesslogvalve.java:950) at Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:116) at Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:408) at Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1040) at Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:607) at Org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun (aprendpoint.java:2441) at Org.apache.tomcat.util.net.aprendpoint$socketprocessor.run (aprendpoint.java:2430) at Java.util.concurrent.threadpoolexecutor$worker.runtask (threadpoolexecutor.java:886) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:908) at Java.lang.Thread.run ( thread.java:619)

2. Cause of Error

The page is introduced:


pathtags.jsp:

<%@ taglib prefix= "C" uri= "Http://java.sun.com/jstl/core"%> <%@ taglib  prefix= "FMT" uri= "/HTTP/ Java.sun.com/jsp/jstl/fmt "%>  <%@ taglib prefix=" sql "uri=" http://java.sun.com/jstl/sql "%>  <%@ Taglib prefix= "x" uri= "Http://java.sun.com/jsp/jstl/xml"%>  <%@ taglib prefix= "M" uri= "http://java.sun.com /jsp/jstl/functions "%>  <%  String path = Request.getcontextpath ();  String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";  %>    <c:set var= "BP" value= "<%=basePath%>" ></c:set>  

"<%@ taglib prefix=" C "uri=" Http://java.sun.com/jstl/core "%>" appears repeatedly introduced to the page, duplicate


3. Solutions

Remove "<%@ taglib prefix=" C "uri=" Http://java.sun.com/jstl/core "%>" from the page


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.