11 2017 档案
摘要:当tomcat的Conector保存着StandardService实例,而StandardService保存着Container的实例 当Http11NioProcessor.process()方法内调用getAdapter.service(request,response)时会调用CoyoteA
阅读全文
摘要:tomcat启动(六)Catalina分析-StandardServer.start() 上一篇分析到:Http11NioProcessor.process(SocketWrapper<S> socketWrapper)会将请求进行转换成生成request,和response对象,然后调用Coyot
阅读全文
摘要:从链接 Tomcat中组件的生命周期管理公共接口Lifecycle 可以知道调用的是StandardServer.startInternal() 1、首先用fireLifecycleEvent()方法发送CONFIGURE_START_EVENT=“config_start”事件 这个事件会被Nam
阅读全文
摘要:Tomcat的组件都会实现一个Lifecycle接口,以方便组件的生命周期的统一管理 interface Lifecycle 组件生命周期中主要的几个方法 事件有: 在tomcat启动过程中用到的几个组件,如StandardServer,StandardService,StandardEngine,
阅读全文
摘要:这个方法主要设置(这个方法很重要,贵在理解,虽然还没学过设计模式。。) 1、遇到<server>标签时创建StandardServer实例 设置StandardServer类内部的相关属性 并调用Catalina.setServer()方法设置server 2、遇到<Server>标签的子标签<Li
阅读全文
摘要:当输入localhost:8080/项目名 浏览器弹出不知道神马错误 The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed
阅读全文