Solutions
One or more listeners failed to start
启动时,webapps 里某个 App 加载失败,tomcat 日志 (logs/catalina.out) 里显示 "SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file"
The simple way to identify the problem:
In your WEB-INF/classes directory of the application, make a new file: logging.properties.
Add the following in that file:
org.apache.catalina.core.ContainerBase.[Catalina].level=INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers=java.util.logging.ConsoleHandler
Restart tomcat.
Now you'll have the complete stacktrace and debug the problem from there on.
Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
原因:
webapps/App/WEB-INF/web.xml
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>webapp.root.one</param-value>
</context-param>
参数“webAppRootKey”的值(上述示例里这个参数值为“webapp.root.one”)对于 tomcat 里部署的每个 App 必须唯一。