ClassNotFoundException with ServletContextlistener

前端 未结 6 778
花落未央
花落未央 2020-12-11 04:42

I get an exception whenever I try getting context parameter from we.XML into a ServletContextListener class, I am really having hard times understa

6条回答
  •  孤城傲影
    2020-12-11 04:56

    My guess is that you have packaged the servlet-api jar in your webapp (in the WEB-INF/lib) folder and this is causing conflicts since the servlet-api will already be present in the container. Make sure you don't include any servlet-api or jsp-api (or Java EE api) jars in your webapp when you deploy it.

提交回复
热议问题