org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl

来源:互联网 发布:pandora软件 编辑:程序博客网 时间:2024/04/30 23:31

Maven 项目部署到tomcat中,导致访问localhost:8080是提示错误org.apache.jasper.el.ELContextImpl cannot be cast to
org.apache.jasper.el.ELContextImpl


遇到org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl异常,是因为自己的项目下WEB-INF\lib下的包与tomcat自带的lib包有重复的,删除重复的包即可。比如jasper.jar,jsp-api.jar,jsp.jar等

如果maven项目,则在需要关联该包中添加语句

<pre name="code" class="html">          <dependency><groupId>org.jtang</groupId><artifactId>store-commons</artifactId><version>0.0.3-SNAPSHOT</version><!--  部署包冲突 --><strong><span style="color:#cc0000;"><exclusions><exclusion><groupId>org.mortbay.jetty</groupId><artifactId>jsp-2.1</artifactId></exclusion><exclusion><groupId>org.mortbay.jetty</groupId><artifactId>jsp-api-2.1</artifactId></exclusion></exclusions></span></strong></dependency>







0 0
原创粉丝点击