Start Tomcat, display the following:
Information: CREATING New Registry Instance
2004-3-20
22:58:04
Org.apache.commons.Modeler.Registry Get Server
Information: CREANG MBEANSERVER
2004-3-20
22:58:05
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 22: 58: 11,734 info [main] web.testhbmservlet (Testhbmservlet.java: 58) - Open session OK
2004-03-20 22: 58: 11,890 Info [main] web.testhbmservlet (Testhbmservlet.java: 77) - 140
2004-3-20
22:58:13
Org.apache.struts.util.propertyMessageResources
Information: Initializing, Config = 'org.apache.struts.util.localstrings', ReturnNull = TRUE
2004-3-20
22:58:13
Org.apache.struts.util.propertyMessageResources
This hibernate configuration is successful using Tomcat's connection pool.
be careful:
l Can't take advantage of cfg = new configuration (). configure ("/ hibernate.cfg.xml"); after creating configure, use cfg.addclass (...) so only use l Delete file hibernate.properties