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

一、服务器:tomcat 7.0.39。需要无项目名、80端口访问

在conf\server.xml中配置端口为80

<Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

在 

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

 后增加

<Context path="" docBase="E:\alarm\apache-tomcat-7.0.39\webapps\alarm" reloadable="true" crossContext="true" />

 docBase为你的项目位置,可以用相对路径

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

 

 

你可能感兴趣的:(java,80,ELContextImpl,无项目名)