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

前端 未结 7 1255
有刺的猬
有刺的猬 2020-12-16 01:02

I have a web service project implemented in java and it also contains jsp pages. I deploy it on jetty 8.1.5 on my machine and it works normally. But when I deploy on a windo

7条回答
  •  悲哀的现实
    2020-12-16 01:25

    IF you are using maven (I asked on a comment without response), you can avoid conflictive jars using a "provided" scope. When you deploy it for production, jars are not included.

    
        javax.servlet
        jsp-api
        2.0
        provided
    
    
        javax.servlet
        servlet-api
        2.5
        provided
    
    

    I'm not sure about jetty's jars but it's probably the same.

    IF you are NOT using maven, you should move your conflictive jars (servlets and jetty) to your develompent container lib folder and remove them from your applications WEB-INF/lib folder.

提交回复
热议问题