如题~
LOG4J信息如下:# For JBoss: Avoid to setup Log4J outside $JBOSS_HOME/server/default/deploy/log4j.xml!
# For all other servers: Comment out the Log4J listener in web.xml to activate Log4J.
log4j.rootLogger=INFO, stdout#console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d %p (%F:%L) - [%m]%n
log4j.appender.stdout.Target=System.out#logfile
#log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.logfile.File=${catalina.home}/logs/background.log
log4j.appender.logfile.threshold = logfile
log4j.appender.logfile.DatePattern = '.'yyyy-MM-dd
log4j.appender.logfile.Append = true
#log4j.appender.logfile=org.apache.log4j.RollingFileAppender
# Log4j Max File Size
#log4j.appender.logfile.MaxFileSize=5120KB
# Keep three backup files.
#log4j.appender.logfile.MaxBackupIndex=5
# Pattern to output: date priority [category] - message
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d %5p (%F:%L) - [%m]%n
# WARNING: Setting the org.springframework logger to DEBUG displays debug information about
# the request parameter values being bound to the command objects.  This could expose your
# password in the log file.  If you are sharing your log files, it is recommend you selectively
# apply DEBUG level logging on a an org.springframework.* package level (i.e. org.springframework.dao)
log4j.logger.org.springframework.jdbc=ERROR
#log4j.logger.org.springframework.web.servlet.i18n=DEBUG
#log4j.logger.org.springframework.web.servlet.view=DEBUG
#log4j.logger.org.quartz=DEBUG
log4j.logger.org.jasig=INFO
log4j.logger.org.hibernate=ERROR
log4j.logger.org.hibernate.SQL=ERROR
log4j.logger.org.apache.struts=ERROR控制台不输出任何信息

解决方案 »

  1.   

    注:
    换过RESIN,TOMCAT5.5,6都没有输出信息!
      

  2.   

    配置一下输出级别试试 
    log4j.rootLogger=info,WARN, error,Console
      

  3.   

    log4j.rootLogger=INFO, stdout
    将stdout改成console。
      

  4.   

    还是不行,我把LOG4J删了都不行
      

  5.   

     单击Console视图,将控制台输出内容选择为Java Stack Trace Console
      

  6.   

    只是输出这种信息,异常看不到
    2010-8-18 10:44:02 org.apache.catalina.core.StandardContext start
    严重: Error listenerStart
    2010-8-18 10:44:02 org.apache.catalina.core.StandardContext start
    严重: Context [/backgroundmanager] startup failed due to previous errors
    2010-8-18 10:44:02 org.apache.catalina.core.ApplicationContext log
      

  7.   

    window-->preferences-->MyEclipse Enterprise Workbench-->Servers-->Tomcat-->Tomcat5.x,定义好Tomcat的所在路径, 
    选择Tomcat5.x-->JDK-->Add,点Browse 找到JDK的安装路径. 
    如果都正确,随便改动下
      

  8.   

    你采用什么结构来架设的???
    应该是你的web.xml没有配置好
      

  9.   

    SSH架构,再NEW CONSOLE也不行啊~
      

  10.   

    WEB.XML:
        <!-- context-param -->
      <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/applicationContext.xml /WEB-INF/applicationContext-security.xml</param-value>
      </context-param> 
      
      <!-- listener -->
      <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener>  
      <listener>
        <listener-class>org.springframework.security.ui.session.HttpSessionEventPublisher</listener-class>
      </listener>
      
      <!-- filter -->
      <filter>
        <filter-name>springSecurityFilterChain</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>springSecurityFilterChain</filter-name>
        <url-pattern>/*</url-pattern>
      </filter-mapping>
      
      <!-- hibernate 延迟加载的错误 failed to lazily initialize a collection of role   (make sure the session of hibernate is only one in a web http request )-->
      <filter>
        <filter-name>hibernateFilter</filter-name>
        <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>hibernateFilter</filter-name>
        <url-pattern>*.do</url-pattern>
      </filter-mapping>
        
      

  11.   

    配置文件有问题,你好好看看你的配置文件吧!!!
    多半是xml文件那里出错了。。
      

  12.   

    XML也没有什么问题啊,一般都是这么配置的吧
      

  13.   

    你如果用的是myeclipse,开服务器是不是通过MyEclipse开的?如果不是,在测试的时候,控制台也可能出不来东西的,我前一阵也碰到这种问题,希望对你有帮助。