Configure web.xml to make this servlet load when starting.
servlet>
Start Tomcat
The information is as follows
2004-3-20
21:28:05
Org.apache.commons.Modeler.Registry GetRegistry
Information: CREATING New Registry Instance
2004-3-20
21:28:06
Org.apache.commons.Modeler.Registry Get Server
Information: CREANG MBEANSERVER
2004-3-20
21:28:07
Org.apache.coyote.http11.http11protocol init
Information: Initializing Coyote HTTP / 1.1 On Port 80
Starting Service Tomcat-Standalone
Apache Tomcat / 4.1.27-Le-JDK14
2004-03-20 21: 28: 11,843 info [main] web.testservlet (TestServlet.java: 43) - Connection pool OK
2004-3-20
21:28:13
Org.apache.struts.util.propertyMessageResources
Information: Initializing, Config = 'org.apache.struts.util.localstrings', ReturnNull = TRUE
2004-3-20
21:28:13
Org.apache.struts.util.propertyMessageResources
Now let's turn off the mysql database service, restart Tomcat
The information is as follows
2004-3-20
21:26:48
Org.apache.commons.Modeler.Registry GetRegistry
Information: CREATING New Registry Instance
2004-3-20
21:26:49
Org.apache.commons.Modeler.Registry Get Server
Information: CREANG MBEANSERVER
2004-3-20
21:26:50
Org.apache.coyote.http11.http11protocol init
Information: Initializing Coyote HTTP / 1.1 On Port 80
Starting Service Tomcat-Standalone
Apache Tomcat / 4.1.27-Le-JDK14
2004-03-20 21: 26: 55, 421 Error [main] web.testservlet (TestServlet.java: 48) - Error Cannot Create PoolableConnectionFactory
2004-3-20
21:26:56
Org.apache.struts.util.propertyMessageResources
Information: Initializing, Config = 'org.apache.struts.util.localstrings', ReturnNull = TRUE
2004-3-20
21:26:56
Org.apache.struts.util.propertyMessageResources