zoukankan      html  css  js  c++  java
  • linux服务器无法显示tomcat详细错误信息


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

    WEB-INF/classes目录下新建一个文件叫logging.properties

    handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler  
    ############################################################  
    # Handler specific properties.  
    # Describes specific configuration info for Handlers.  
    ############################################################  
    org.apache.juli.FileHandler.level = FINE  
    org.apache.juli.FileHandler.directory = ${catalina.base}/logs  
    org.apache.juli.FileHandler.prefix = error-debug.  
      
    java.util.logging.ConsoleHandler.level = FINE  
    java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
    

     我们再启动tomcat时,就会在logs目录下生成一个更详细的日志error-debug.xxx.log

  • 相关阅读:
    第一周作业
    第一周作业
    C语言I博客作业07
    C语言I博客作业06
    C语言I博客作业03
    C语言I博客作业04
    c语言|博客作业02
    字段的约束验证
    [转]AS IS ? ??运算符
    BindingManagerBase 跟踪不一致
  • 原文地址:https://www.cnblogs.com/wujixing/p/5945025.html
Copyright © 2011-2022 走看看