启动报错:One or more listeners failed to start. Full details will be found in the appropriate container

启动报错:One or more listeners failed to start. Full details will be found in the appropriate container log file


启动时在日志中只看到以上(One or more listeners failed to start. Full details will be found in the appropriate container log file)错误日志,可是并无把具体报错的缘由打印出来,增长日志文件解决:
解决方式:
在classpath下增长配置文件logging.properties
文件中的内容为:

handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = …/logs
org.apache.juli.FileHandler.prefix = error-debug.
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

从新启动,便可在日志中看到错误日志。java