One or more listeners failed to start. Full details will be found in the appropriate container异常处理

tomcat 启动之后,报出如下错误:

One or more listeners failed to start. Full details will be found in the appropriate container log

解决方法:
在WEB-INF/classes/下,增加logging.properties,并在其中增加如下内容,再次启动tomcat,即可看到错误详细信息。

org.apache.catalina.core.ContainerBase.[Catalina].level=INFO 
org.apache.catalina.core.ContainerBase.[Catalina].handlers=java.util.logging.ConsoleHandler

你可能感兴趣的:(java)