spring mvc - Tomcat 7 with SpringMVC, missing "Server startup" success message -


up until catalina.log used report following:

mar 19, 2015 4:49:20 pm org.apache.catalina.core.applicationcontext log info: initializing spring frameworkservlet 'dispatcher1' mar 19, 2015 4:49:20 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["http-bio-9080"] mar 19, 2015 4:49:20 pm org.apache.catalina.startup.catalina start info: server startup in 53209 ms 

which during automated deployment know whether servlet started ok. recently, no longer message in catalina.out. however:

  • there no startup errors
  • logging working
  • the server seems working perfectly, afaict (responds requests)
  • kill -3 doesn't show helpful can see

so,

  • what might have caused "server startup" message stop being printed (and yet server accept connections)?
  • in (annotation based) spring mvc, there place can place hook , output custom "servlet startup success" message?

  1. the "standard out" may no longer going catalina.out. what's in log4j property file? , using start tomcat?

  2. you impelement servletcontextlistener aware of when servlet based application ready accept requests.

http://docs.oracle.com/javaee/6/api/javax/servlet/servletcontextlistener.html#contextinitialized(javax.servlet.servletcontextevent)


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -