OpenCMS 7.0安装过程分析
1. tomcat启动
启动tomcat, 在web.xml有配置listener
<listener> <listener-class>org.opencms.main.OpenCmsListener</listener-class>
</listener>
OpenCmsListener implements ServletContextListener, HttpSessionListener
他会对context的初始化和Destroy做处理。
下面sequence是初始话过程。
但对于安装过程,发现该初始化没有实际意义。

2. serlvet初始化
web.xml中有
<servlet>
<description>
The main servlet that handles all requests to the OpenCms VFS.
</description>
<servlet-name>OpenCmsServlet</servlet-name>
<servlet-class>org.opencms.main.OpenCmsServlet</servlet-class>
<!-- Uncomment this if using BEA WLS 9.x -->
<!--
<init-param>
<param-name>OnErrorExitWithoutException</param-name>
<param-value>true</param-value>
<description>
This is important while the setup/update wizard is enabled.
The default value of 'false' should work for almost all servlet containers.
But if using BEA WLS 9.x, you should set it to 'true'.
</description>
</init-param>
-->
<!-- Uncomment this if using BEA WLS 9.x -->
<load-on-startup>1</load-on-startup>
</servlet>
所以在启动的时候会对该servlet进行初始化,流程如下,但就安装时,发现该初始化没有实际意义。

3. step2
检查环境。

4. step3选择数据库

5. step4a, step5 检验数据库链接,创建数据库和表

6. step6 模块选择
读取webapps/opencms/WEB-INF/packages/modules下的zip文件

7. Step7 保存属性

8. Step8 导入模块

9. Step8b
创建opencms缺省的数据,如group,users,project等
从zip中读取模块数据,导入到opencms中。

10. 未完