Community
Participate
Working Groups
To recreate, 1. take a fresh build or web-server and start it. 2. Stop it and look in the logs, about 380 lines in. Startup: system-artifacts org.eclipse.gemini.web.tomcat.internal.TomcatConfigLocator Configuring Tomcat from file 'config/tomcat-server.xml' system-artifacts System.err Jul 15, 2011 12:37:09 PM org.apache.catalina.core.AprLifecycleListener init system-artifacts System.err INFO: The APR based Apache Tomcat Native library which allows optimal performance system-artifacts System.err Jul 15, 2011 12:37:09 PM org.apache.coyote.AbstractProtocolHandler init system-artifacts System.err INFO: Initializing ProtocolHandler ["http-bio-8080"] system-artifacts System.err Jul 15, 2011 12:37:09 PM org.apache.coyote.AbstractProtocolHandler init system-artifacts System.err INFO: Initializing ProtocolHandler ["http-bio-8443"] system-artifacts System.err Jul 15, 2011 12:37:09 PM org.apache.coyote.AbstractProtocolHandler init system-artifacts System.err INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Deploying: "http-bio-8080"-exec-3 System.err Jul 15, 2011 12:37:38 PM org.apache.catalina.core.ApplicationContext log "http-bio-8080"-exec-3 System.err INFO: Initializing Spring FrameworkServlet 'splash' Shutdown: System Bundle Shutdown org.eclipse.virgo.medic.eventlog.default TC0002I Stopping Tomcat. System Bundle Shutdown System.err Jul 15, 2011 12:37:54 PM org.apache.coyote.AbstractProtocolHandler pause System Bundle Shutdown System.err INFO: Pausing ProtocolHandler ["http-bio-8080"] System Bundle Shutdown System.err Jul 15, 2011 12:37:55 PM org.apache.coyote.AbstractProtocolHandler pause System Bundle Shutdown System.err INFO: Pausing ProtocolHandler ["http-bio-8443"] System Bundle Shutdown System.err Jul 15, 2011 12:37:56 PM org.apache.coyote.AbstractProtocolHandler pause System Bundle Shutdown System.err INFO: Pausing ProtocolHandler ["ajp-bio-8009"] System Bundle Shutdown System.err Jul 15, 2011 12:37:57 PM org.apache.catalina.core.StandardService stopInternal System Bundle Shutdown System.err INFO: Stopping service Catalina System Bundle Shutdown System.err Jul 15, 2011 12:37:57 PM org.apache.catalina.core.ApplicationContext log System Bundle Shutdown System.err INFO: Destroying Spring FrameworkServlet 'splash'
See also bug 351533 which the fix to this bug may help.
I checked the behaviour of Virgo 2.1.0.RELEASE and this also includes corresponding log entries such as: [2011-07-19 16:11:17.745] system-artifacts System.err INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java So closing this bug as working as designed. I will however check with a Tomcat expert to make sure Tomcat really is intending to write to System.err.
The Tomcat behaviour is actually a behaviour of the JUL ConsoleHandler ([1]) which directs all log records to System.err, regardless of their level. [1] http://download.oracle.com/javase/6/docs/api/java/util/logging/ConsoleHandler.html