tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject Re: Tomcat start message
Date Wed, 02 Apr 2014 15:18:10 GMT
On 4/2/2014 2:03 AM, André Warnier wrote:
> All,
>
> Referring to a classic Tomcat log like the one below :
>
> Would it not be a good idea for Tomcat, when it starts, to print a first
> line to its main logfile, similar to what Apache httpd does :
>
> [Tue Apr 01 18:00:02 2014] [notice] Apache/2.2.12 (Linux/SUSE)
> mod_ssl/2.2.12 OpenSSL/0.9.8j-fips mod_jk/1.2.26 mod_perl/2.0.4
> Perl/v5.10.0 configured -- resuming normal operations
>
> I mean, for Tomcat, a line with it's own version, the Java version, the
> APR version if used, the host OS if available etc..
> All these things that we usually ask the posters to this list to
> provide, and which can be obtained via the "version.sh|bat" script in
> tomcat/bin.
>
> In at least 50% of the cases, it would at least save us from having to ask.
>
> And actually running the "version.sh|bat" script on the server (or any
> command-line for that matter) may not necessarily be easy for everyone
> who has a problem.
>
>
> Sample current log :
>
> Apr 2, 2014 8:33:53 AM org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> /usr/java/jdk1.6.0_38/jre/lib/amd64/server:/usr/java/jdk1.6.0_38/jre/lib/amd64:/usr/java/jdk1.6.0_38/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>
> Apr 2, 2014 8:33:53 AM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-8080"]
> Apr 2, 2014 8:33:53 AM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
> Apr 2, 2014 8:33:53 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 890 ms
> Apr 2, 2014 8:33:53 AM org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardServer[8005]]
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [...]
> Apr 2, 2014 8:33:53 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 6 ms

+1 for this

I can think of several (OK, many) mailing list threads where having this 
knowledge would have saved lots of time and effort.

. . . just my (lazy) two cents.
/mde/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message