你要是牛逼,就给我解释解释tomcat启动的原理 代码如下

dayutou881108 2011-08-30 04:41:02
2011-8-30 16:39:32 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;D:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.6.0.me201007231647\tomcat\bin
2011-8-30 16:39:32 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2011-8-30 16:39:32 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 827 ms
2011-8-30 16:39:33 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-8-30 16:39:33 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.13
Platform -> platform start ...
2011-08-30 16:39:36:DEBUG main com.inspur.eoms.platform.core.PlatformManager - PlatformManager -> init log finished.
2011-08-30 16:39:36:DEBUG main com.inspur.eoms.platform.core.PlatformManager - PlatformManager -> init log finished.
Platform -> platform start finished. it lasted 0 [s]
2011-8-30 16:39:36 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
Hibernate: select syslanguag0_.id as id45_, syslanguag0_.lang_id as lang2_45_, syslanguag0_.lang_en as lang3_45_, syslanguag0_.lang_cn as lang4_45_ from sys_language syslanguag0_ where 1=1
Hibernate: select syselement0_.id as id44_, syselement0_.ele_cntext as ele2_44_, syselement0_.ele_entext as ele3_44_, syselement0_.ele_value as ele4_44_, syselement0_.ele_memo as ele5_44_, syselement0_.parent_element as parent6_44_, syselement0_.ele_class as ele7_44_ from sys_element syselement0_ where 1=1
Hibernate: select syseleclas0_.id as id43_0_, syseleclas0_.ele_class as ele2_43_0_, syseleclas0_.class_cnname as class3_43_0_, syseleclas0_.class_enname as class4_43_0_, syseleclas0_.class_parent as class5_43_0_ from sys_eleclass syseleclas0_ where syseleclas0_.id=?
Hibernate: select syseleclas0_.id as id43_0_, syseleclas0_.ele_class as ele2_43_0_, syseleclas0_.class_cnname as class3_43_0_, syseleclas0_.class_enname as class4_43_0_, syseleclas0_.class_parent as class5_43_0_ from sys_eleclass syseleclas0_ where syseleclas0_.id=?
Hibernate: select syseleclas0_.id as id43_0_, syseleclas0_.ele_class as ele2_43_0_, syseleclas0_.class_cnname as class3_43_0_, syseleclas0_.class_enname as class4_43_0_, syseleclas0_.class_parent as class5_43_0_ from sys_eleclass syseleclas0_ where syseleclas0_.id=?
SearchServiceEngine -> engine start ...
SearchServiceEngine -> engine start finished. it lasted 19 [s]
2011-08-30 16:40:21:INFO main com.inspur.quartz.QuartzLister - --------------------Quartz,initializing taskschedulerFactory----------------------
2011-08-30 16:40:21:INFO main com.inspur.quartz.QuartzLister - --------------------Quartz,initializing taskschedulerFactory----------------------
2011-08-30 16:40:21:INFO main com.inspur.quartz.QuartzLister - -----------tdo.updateAllState就绪-----------------
2011-08-30 16:40:21:INFO main com.inspur.quartz.QuartzLister - -----------tdo.updateAllState就绪-----------------
Hibernate: update CAS_TASK set state='0' where state='1'
2011-08-30 16:40:21:INFO main com.inspur.quartz.QuartzLister - -------------------------------------------
2011-08-30 16:40:21:INFO main com.inspur.quartz.QuartzLister - -------------------------------------------
fxtree::use default xml file named fxtree-config.xml
fxtree::init - successfully configured.
2011-8-30 16:40:29 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2011-8-30 16:40:29 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2011-8-30 16:40:29 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/76 config=null
2011-8-30 16:40:29 org.apache.catalina.startup.Catalina start
信息: Server startup in 56284 ms
...全文
230 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
zx8813443 2011-08-31
  • 打赏
  • 举报
回复
哥,挥一挥衣袖~~~
infoview 2011-08-31
  • 打赏
  • 举报
回复
好好研究下,应该能看懂的。
healer_kx 2011-08-31
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 softroad 的回复:]

呀,太高深了,lz有兴趣的话下载个tomcat源码,找找org.apache.catalina.startup.Bootstrap类的main方法一直看下去就明白了。
[/Quote]

UP

PS:我看过,也写过个简单的。
曹西 2011-08-31
  • 打赏
  • 举报
回复
这个强大
nodream521 2011-08-31
  • 打赏
  • 举报
回复
飘啊飘飘过 帮顶
朗晴 2011-08-30
  • 打赏
  • 举报
回复
牛人都来了,除了我!……
teemai 2011-08-30
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 zn85600301 的回复:]

这叫代码如下 ~~
[/Quote]

我笑喷了,这句话很幽默。
dayutou881108 2011-08-30
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 shine333 的回复:]
引用 1 楼 softroad 的回复:

呀,太高深了,lz有兴趣的话下载个tomcat源码,找找org.apache.catalina.startup.Bootstrap类的main方法一直看下去就明白了。

夏虫不可语冰
[/Quote]

我是一个夏天的小虫怎么敢去眺望冬天那 哈哈
OkEDU开源 2011-08-30
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 gaojie314 的回复:]

2011-8-30 16:39:32 org.apache.catalina.core.AprLifecycleListener init
--> AprLifecycleListener Apr是tomcat提高并发量的的模块,也许这个tomcat配置了apr模块
信息: The Apache Tomcat Native library which allows optimal perfo……
[/Quote]
下面那段写错了,读取环境变量启动java虚拟机应该是最先的, 下面只是一个提示信息罢了
shine333 2011-08-30
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 softroad 的回复:]

呀,太高深了,lz有兴趣的话下载个tomcat源码,找找org.apache.catalina.startup.Bootstrap类的main方法一直看下去就明白了。
[/Quote]
夏虫不可语冰
softroad 2011-08-30
  • 打赏
  • 举报
回复
lz问的是tomcat启动原理,不是问如何架子spring,hibernate、
zhugfiwangc 2011-08-30
  • 打赏
  • 举报
回复
楼上正解
OkEDU开源 2011-08-30
  • 打赏
  • 举报
回复
2011-8-30 16:39:32 org.apache.catalina.core.AprLifecycleListener init
--> AprLifecycleListener Apr是tomcat提高并发量的的模块,也许这个tomcat配置了apr模块
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;D:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.6.0.me201007231647\tomcat\bin
-->首先读取java环境变量,接着会设置相应的参数启动java虚拟机
2011-8-30 16:39:32 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
-->初始化http请求引擎coyote
2011-8-30 16:39:32 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 827 ms
-->加载和初始化catalina服务器(应该是tomcat的核心吧)
2011-8-30 16:39:33 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-8-30 16:39:33 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.13
-->启动servlet引擎
Platform -> platform start ...
2011-08-30 16:39:36:DEBUG main com.inspur.eoms.platform.core.PlatformManager - PlatformManager -> init log finished.
2011-08-30 16:39:36:DEBUG main com.inspur.eoms.platform.core.PlatformManager - PlatformManager -> init log finished.
Platform -> platform start finished. it lasted 0 [s]
2011-8-30 16:39:36 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
-->加载spring配置文件,初始化spring容器

个人理解的,错了请提出啊.
zn85600301 2011-08-30
  • 打赏
  • 举报
回复
这叫代码如下 ~~
softroad 2011-08-30
  • 打赏
  • 举报
回复
呀,太高深了,lz有兴趣的话下载个tomcat源码,找找org.apache.catalina.startup.Bootstrap类的main方法一直看下去就明白了。

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧