Error in Eclipse-Tomcat Setup - ClassNotFoundException “1catalina.org.apache.juli.FileHandler”

前端 未结 2 1327
盖世英雄少女心
盖世英雄少女心 2021-01-01 21:48

Setup: Eclipse Juno R, Tomcat 7.0.8, tomcat run through eclipse plug in. Tomcat launch configuration from eclipse has VM argument -Djava.util.logging.confi

相关标签:
2条回答
  • 2021-01-01 21:54

    Ensure the following system property is set,

    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
    

    As seen here on the tomcat users mailing list.

    I had the same problem launching tomcat with YAJSW instead of using the tomcat startup scripts.

    0 讨论(0)
  • 2021-01-01 21:59

    You can check the FAQ for this specific Question: http://wiki.apache.org/tomcat/FAQ/Logging

    Or you can use another logging.properties, for example this one:

    log4j.rootLogger=DEBUG, A1
    log4j.appender.A1=org.apache.log4j.ConsoleAppender
    log4j.appender.A1.layout=org.apache.log4j.PatternLayout
    
    # Print the date in ISO 8601 format
    log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
    
    # Print only messages of level WARN or above in the package com.foo.
    log4j.logger.com.foo=WARN
    
    0 讨论(0)
提交回复
热议问题