Tomcat 启动过程

Posted run127

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Tomcat 启动过程相关的知识,希望对你有一定的参考价值。

 

2016-5-22 20:20:13 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 342 ms
--------Tomcat导入Spring配置文件
2016-5-22 20:20:14 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2016-5-22 20:20:14 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization started
---------生成sSpring beans :dataSource,sessionFactory,daoTemplate,employee,managerTemplate,empManager
2016-5-22 20:20:14 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in org.s[email protected]4b0e18ba: defining beans [dataSource,sessionFactory,daoTemplate,employee,managerTemplate,empManager]; root of factory hierarchy
---------Hibernate初始化
2016-5-22 20:20:15 org.hibernate.cfg.Environment <clinit>
信息: Hibernate 3.2.6
2016-5-22 20:20:15 org.hibernate.cfg.Environment <clinit>
信息: hibernate.properties not found
2016-5-22 20:20:15 org.hibernate.cfg.Environment buildBytecodeProvider
信息: Bytecode provider name : cglib
2016-5-22 20:20:15 org.hibernate.cfg.Environment <clinit>
信息: using JDK 1.4 java.sql.Timestamp handling
--------持久对象与数据库表关联:Employee -> emp_table UserRole -> user_role_table Department -> department_table
2016-5-22 20:20:15 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.hrsys.model.Employee -> emp_table
2016-5-22 20:20:15 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.hrsys.model.UserRole -> user_role_table
2016-5-22 20:20:15 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.hrsys.model.Department -> department_table
---------Hibernate连接数据
2016-5-22 20:20:15 org.springframework.orm.hibernate3.LocalSessionFactoryBean buildSessionFactory
信息: Building new Hibernate SessionFactory
2016-5-22 20:20:15 org.hibernate.connection.ConnectionProviderFactory newConnectionProvider
信息: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
2016-5-22 20:20:15 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge10i9g1o1n8iu1vwmohe|da2da17, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge10i9g1o1n8iu1vwmohe|da2da17, idleConnectionTestPeriod -> 0, initialPoolSize -> 1, jdbcUrl -> jdbc:mysql://localhost/hrSystem, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 20, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 40, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
2016-5-22 20:20:15 org.hibernate.cfg.SettingsFactory buildSettings
信息: RDBMS: MySQL, version: 5.6.26-log
2016-5-22 20:20:15 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.10 ( $Date: 2005/05/19 15:52:23 $, $Revision: 1.1.2.2 $ )
2016-5-22 20:20:15 org.hibernate.dialect.Dialect <init>
信息: Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
2016-5-22 20:20:15 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
信息: Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
2016-5-22 20:20:15 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
信息: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2016-5-22 20:20:15 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
信息: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2016-5-22 20:20:15 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
信息: Using ASTQueryTranslatorFactory
2016-5-22 20:20:15 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query language substitutions: {}
2016-5-22 20:20:16 org.hibernate.impl.SessionFactoryImpl <init>
信息: building session factory
------------获取每张表的内容
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: table found: hrSystem.department_table
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: columns: [mgr_id, dept_name]
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: foreign keys: [fk23ef52e7e978d391]
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: indexes: [fk23ef52e7e978d391, primary]
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: table found: hrSystem.emp_table
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: columns: [role_id, mgr_id, emp_name, emp_id, emp_salary, emp_pass]
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: foreign keys: [fk87467197ba28d811, fk874671972a847fee, emp_table_ibfk_1, fk87467197111b9bc2]
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: indexes: [fk87467197ba28d811, emp_name, primary, fk874671972a847fee, fk87467197111b9bc2]
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: table found: hrSystem.user_role_table
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: columns: [role_id, role]
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: foreign keys: []
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.TableMetadata <init>
信息: indexes: [primary]
2016-5-22 20:20:16 org.hibernate.tool.hbm2ddl.SchemaUpdate execute
信息: schema update complete
2016-5-22 20:20:16 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization completed in 1977 ms
----------初始化话Struts
2016-5-22 20:20:16 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2016-5-22 20:20:16 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2016-5-22 20:20:16 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2016-5-22 20:20:16 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Initializing Struts-Spring integration...
2016-5-22 20:20:16 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Setting autowire strategy to name
2016-5-22 20:20:16 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: ... initialized Struts-Spring integration successfully

信息: Server startup in 4173 ms

以上是关于Tomcat 启动过程的主要内容,如果未能解决你的问题,请参考以下文章

Tomcat 启动过程概览

Tomcat分析-启动过程

Tomcat第二篇——启动过程

Tomcat第二篇——启动过程

Spring Boot启动过程:Spring Boot内嵌Tomcat启动

Tomcat启动过程:EndPoint解析