Why did Servlet.service() for servlet jsp throw this exception?

后端 未结 5 1520
闹比i
闹比i 2020-11-27 17:34

I get the following error, what could be the problem?

My context descriptor:




        
5条回答
  •  广开言路
    2020-11-27 17:53

    If your project is Maven-based, remember to set scope to provided for such dependencies as servlet-api, jsp-api. Otherwise, these jars will be exported to WEB-INF/lib and hence contaminate with those in Tomcat server. That causes painful problems.

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

提交回复
热议问题