2014-02-07 38 views
1

這些警告是什麼意思?GWT 2.6控制檯警告

[WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' could not be found in the web app, but was found on the system classpath 
    [WARN] Adding classpath entry 'file:/Applications/gwt/gwt-2.6.0/gwt-dev.jar' to the web app classpath for this session 
    For additional info see: file:/Applications/gwt/gwt-2.6.0/doc/helpInfo/webAppClassPath.html 
[WARN] Server class 'org.slf4j.Logger' could not be found in the web app, but was found on the system classpath 
    [WARN] Adding classpath entry 'file:/Users/mg/Documents/Grails/GGTS3.5M1/buddyis/lib/gwt/slf4j-api-1.7.5.jar' to the web app classpath for this session 
    For additional info see: file:/Applications/gwt/gwt-2.6.0/doc/helpInfo/webAppClassPath.html 
[WARN] Server class 'org.slf4j.impl.StaticLoggerBinder' could not be found in the web app, but was found on the system classpath 
    [WARN] Adding classpath entry 'file:/Users/mg/Documents/Grails/GGTS3.5M1/buddyis/lib/gwt/mobile/slf4j-log4j12-1.7.5.jar' to the web app classpath for this session 
    For additional info see: file:/Applications/gwt/gwt-2.6.0/doc/helpInfo/webAppClassPath.html 
[WARN] Server class 'org.apache.log4j.Level' could not be found in the web app, but was found on the system classpath 
    [WARN] Adding classpath entry 'file:/Users/mg/Documents/Grails/GGTS3.5M1/buddyis/lib/gwt/mobile/log4j-1.2.17.jar' to the web app classpath for this session 
    For additional info see: file:/Applications/gwt/gwt-2.6.0/doc/helpInfo/webAppClassPath.html 
log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log). 
log4j:WARN Please initialize the log4j system properly. 
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 
log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). 
log4j:WARN Please initialize the log4j system properly. 
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 

回答

5

第一組的警告是因爲當你運行開發模式,它啓動一個servlet容器(碼頭),這是默認配置爲使用任何庫項目中的類路徑中,當一個類未找到的情況。 這些警告有助於瞭解在生產中必須添加到.war工件中的庫。

第二組WARNings是因爲您還沒有爲您的項目配置log4j。