web容器读取配置文件过程中的一个问题
来源:互联网 发布:地方债务数据 编辑:程序博客网 时间:2024/06/03 12:29
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config-xhz.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>action_tmp</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
前面的action是本人自己加进去的,后面的action_temp则是Weblogic在加载过程中自己添上去的,什么时候加进去的本人不知道.从前以为是有人故意加去的,我就删去了,但后来就报错了,还原后就没问题了.
为了观察,我调低了日记级别,发现后面一个反而先加载,两个的加载过程几乎是一样的.
DEBUG - Publishing event in context [WebApplicationContext for namespace 'action_tmp-servlet']: org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.web.context.support.XmlWebApplicationContext: display name [WebApplicationContext for namespace 'action_tmp-servlet']; startup date [Fri Jan 18 18:26:37 CST 2008]; root of context hierarchy; config locations [/WEB-INF/applicationContext.xml,/WEB-INF/dc.xml,/WEB-INF/TreeDao.xml,/WEB-INF/datamaintance.xml,/WEB-INF/meeting.xml]]
INFO - Using context class 'org.springframework.web.context.support.XmlWebApplicationContext' for servlet 'action_tmp'
DEBUG - Published WebApplicationContext of Struts ActionServlet 'action_tmp', module '' as ServletContext attribute with name [org.springframework.web.struts.ContextLoaderPlugIn.CONTEXT.]
INFO - ContextLoaderPlugIn for Struts ActionServlet 'action_tmp', module '': initialization completed in 154750 ms
DEBUG - Publishing event in context [WebApplicationContext for namespace 'action-servlet']: org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.web.context.support.XmlWebApplicationContext: display name [WebApplicationContext for namespace 'action-servlet']; startup date [Fri Jan 18 18:32:06 CST 2008]; root of context hierarchy; config locations [/WEB-INF/applicationContext.xml,/WEB-INF/dc.xml,/WEB-INF/TreeDao.xml,/WEB-INF/datamaintance.xml,/WEB-INF/meeting.xml]]
INFO - Using context class 'org.springframework.web.context.support.XmlWebApplicationContext' for servlet 'action'
DEBUG - Published WebApplicationContext of Struts ActionServlet 'action', module '' as ServletContext attribute with name [org.springframework.web.struts.ContextLoaderPlugIn.CONTEXT.]
INFO - ContextLoaderPlugIn for Struts ActionServlet 'action', module '': initialization completed in 62110 ms
- web容器读取配置文件过程中的一个问题
- web容器读取配置文件过程中的一个问题
- 读取web项目中的配置文件
- web.xml文件加载顺序 一、 1 、启动一个 WEB 项目的时候, WEB 容器会去读取它的配置文件 web.xml ,读取 <listener> 和 <context-param>
- web项目配置文件中的问题
- Spring在Web容器中的启动过程
- tomcat容器下读取配置文件
- 论Docker容器中的Nginx配置文件如何读取系统/容器的环境变量
- java web 读取配置文件
- web.config配置文件读取
- tomcat web 工程下配置文件读取的问题
- 使用Tinyfox部署Web API 读取配置文件问题
- web容器初始化过程
- 【Java.Spring.MVC】Spring在Web容器中的启动过程
- Spring4.3.x 容器在web应用中的初始化过程
- 关于web中的一个问题
- 读取配置文件中的信息
- 读取配置文件中的数据
- C#中的字符(Char)处理
- [摘]让CSDN 博客使用Windows Live Writer
- 从数据库系统管理的角度上回答数据库是什么
- 2007年回顾与2008年计划
- 《反模式》这本书终于出版了
- web容器读取配置文件过程中的一个问题
- 出差
- 我的博客随时更新
- SOA 新业务语言 新系统架构——SOA的目的、意义和价值
- 测试
- C#中的类
- NOKIA手机常用的指令秘籍
- 利用“花生壳”和Tomcat建立自己的Web服务器
- 我的奋斗 五年从月薪3500到700万