Start the standalone tomcat server does not automatically create ServletContext, listening to the life cycle of failure Context

1, may web.xml file is not configured for ContextListener

2, web.xml file related to the configuration of ContextListener spelling problem the wrong word

such as

<listener>
    <listenter-class>listener.ContextListener</listenter-class>
<listener>

here

<listenter-class>listener.ContextListener</listenter-class>

Inside listenter is misspelled ah. Led me to print it out in the server "web application initialization"

Guess you like

Origin www.cnblogs.com/Strugglinggirl/p/11937935.html