Tomcat - Servlet init() called twice upon startup

后端 未结 4 925
刺人心
刺人心 2021-01-19 23:59

I have an issue with a standalone Tomcat server (not linked with Apache).

When Tomcat starts up, the init() method of the servlet is getting called twice, i.e., two

4条回答
  •  孤城傲影
    2021-01-20 00:24

    Tomcat is autodeploying anything in webapps, and also deploying according to server.xml. Just remove your webapp from webapps to avoid double loading.

提交回复
热议问题