2011/10/20 Brian Jones <bjone...@uwo.ca>: > - Environment: Windows 7 Professional, SP1 64-bit, Tomcat 5.5.33 > > - Logging level set to INFO > > - CATALINA_OPTS: -Dsun.lang.ClassLoader.allowArraySyntax=true > > - No JAVA_OPTS environment variable > > - JAVA_HOME points to JDK 1.6.0_26 > > - NOT installed as a Windows service. Tomcat starts/runs/stops fine > using startup.bat and shutdown.bat > > - Applications deploy properly, can be accessed and used properly > > - Tomcat admin console can be accessed and used properly > > - The problem is that the log files are always empty (0kb) > > - The following log files are produced by Tomcat, but are always > empty: > > o admin.date.log > > o catalina.date.log > > o host-manager.date.log > > o localhost.date.log > > o manager.date.log > > - The following log files are NOT produced by Tomcat (missing) > > o stdout.log > > o stderr.log > > o catalina.out > > - I’ve tried several workarounds to produce the log files properly, > all without success > > o Tried running the .bat file from the command line directly piping output > to a local .txt file; all that gets piped to the .txt file is the java > environment variables that are being used
startup.bat is equivalent to calling "catalina.bat start" Try using "catalina.bat run" instead. > > o Modified catalina.bat to pipe %EXECJAVA% … %ACTION% commands to log file > (didn’t work, nothing in the log file) It would be nice to see the actual command line that starts Tomcat's Bootstrap. The JVM keys that configure java.util.logging should be there. > o Followed instructions at > http://tomcat.apache.org/tomcat-5.5-doc/logging.html to set up logging Maybe 7.0 docs will be more understandable. > § Tried log4j; log files didn’t contain exception messages Did you restore original configuration after these experiments? Did you remove log4j.jar? >(...) > Contents of logging.properties file (located in BOTH /common/classes/ and > /conf/ folders): It should be only in conf. > # Licensed to the Apache Software Foundation (ASF) under one or more > (...) Try to simplify your configuration. Leave only "1catalina.org.apache.juli.FileHandler". (You may include ConsoleHandler as well if you want to dup all to the console as well, but omitting it you can catch what goes to console only and not to the files). [[[ handlers = 1catalina.org.apache.juli.FileHandler .handlers = 1catalina.org.apache.juli.FileHandler 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli.FileHandler.prefix = catalina. .level=INFO ]]] IIRC If logging fails to start it prints a message to the console. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org