访问tomcat7 java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl

<Span style = "font-family: KaiTi_GB2312; font-size: 18px;"> Error performance: </ span>
<Span style = "font-family: KaiTi_GB2312; font-size: 18px;"> posting not being given a normal project, jsp and access http: // localhost: 8080 on the error, the wrong background newspaper: org.apache.catalina. core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [] threw exception [java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl] with root cause
java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
Reception:
java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl</span>
<Span style = "font-family: KaiTi_GB2312; font-size: 18px;"> Error Solution: </ span>
<pre id="best-content-1250561739" class="best-text mb-10" name="code" style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 10px; padding: 0px;"><span style="font-family: KaiTi_GB2312; font-size: 18px; background-color: rgb(255, 255, 255);">EL表达式的错误 
Solution 1:
    When the project is referenced in the following tomcat lib directory of the catalina.jar with myeclipse to deploy the project to tomcat below, when the project will be added to the package catalina.jar web-inf below lib folder, so this lib the following packages will be following catalina.jar and tomcat package conflicts will be reported java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor error, the solution is to deploy the project to tomcat after following the project web- inf / lib below catalina.jar deleted, and then restart tomcat, ok.
   
    Scenario 2:
Modify the tomcat in the context.xml file, add the elements in context
<Context>
<Loader delegate="true" /></span>
 
Published 90 original articles · won praise 21 · views 470 000 +

Guess you like

Origin blog.csdn.net/yx13649017813/article/details/46858375