Tomcat - won't load my META-INF\services\javax.servlet.ServletContainerInitializer file?

后端 未结 4 1553
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-02 07:32

I have a web project that has a \\META-INF\\services\\javax.servlet.ServletContainerInitializer file with its content pointing to the fully qualified name of a

4条回答
  •  一向
    一向 (楼主)
    2021-01-02 07:43

    The first thing to check is that you are actually using Servlet 3.0 and not an earlier version. For Tomcat, this means that you must be using Tomcat 7.0.22

    Second, make sure that the \META-INF\services\javax.servlet.ServletContainerInitializer file actually exists in the exploded war file.

    Third, when in doubt, configure and start Tomcat directly (not from Eclipse) - I've seen developers have endless problems with configuration of Tomcat using the Eclipse plugin.

提交回复
热议问题