OpenCms6.2.1-jBPM3.1.2-manual-zh
- 格式:doc
- 大小:333.50 KB
- 文档页数:13
JBPM模块使用手册北京朗华世纪科技发展有限公司2006年10月第一章安装本章介绍如何将JBPM安装到OpenCms中,该版本目前测试通过的环境是Tomcat5.5.x,MySQL4.1.x,OpenCms6.2.x。
1. 确认系统已安装nghua.opencms.jbpm_2.0.x.zip 模块。
确认的方法是打开模块管理,检查是否有“包名称”为nghua.opencms.jbpm_2.0.x.zip的模块。
如果有,那么可以进入下一步。
如果没有,请向北京朗华世纪科技发展有限公司索取该模块,并安装到系统中,安装完毕以后请重启服务。
注意:导入模块的时候,请在根站点下导入。
2. 修改Tomcat配置1.拷贝与所使用的数据库相匹配的JDBC驱动至{tomcat_home}\common\lib\目录下,这里以MySQL4.1.x为例子,需要拷贝mysql-connector-java-3.1.12-bin.jar文件至{tomcat_home}\common\lib。
2.定义数据源。
以下是以MySQL4.1x为例的修改:{tomcat_home}\conf\context.xml文件,如没有该文件请手动创建。
文件/system/modules/nghua.opencms.jbpm/classes/下的hibernate.cfg.xml中的数据源设置。
3.修改WEB-INF目录下的web.xml文件。
文件内容如下:<web-app><display-name>OpenCms</display-name><description>OpenCms, the Open Source Content Management System.(c) 2005 Alkacon Software GmbH with contributions from the OpenCms community.For more details about OpenCms, please see /.For more details about Alkacon Software GmbH, please see /.</description><!--Changing the servlet name from "opencms" to something else requires 3 changes in this file.For example, to change the servlet name to "mycms" you must:1. Change the <context-param> called "OpenCmsServlet" from "/opencms/*" to "/mycms/*"2. Change the <servlet-mapping> for "OpenCmsServlet" from "/opencms/*" to "/mycms/*"3. Change the <error-page> setting for the 404 error from "/opencms/handle404" to "/mycms/handle404"--><context-param><param-name>OpenCmsServlet</param-name><param-value>/cms/*</param-value></context-param><context-param><param-name>DefaultWebApplication</param-name><param-value>ROOT</param-value></context-param><filter><filter-name>LogFilter</filter-name><filter-class>org.jbpm.webapp.filter.LogFilter</filter-class></filter><filter><filter-name>JbpmContextFilter</filter-name><filter-class>org.jbpm.web.JbpmContextFilter</filter-class></filter><filter-mapping><filter-name>LogFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping><filter-mapping><filter-name>JbpmContextFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping><!--Uncomment this parameter in case you change the web application context using an application serverspecific deployment descriptor. E.g. in Jboss, you could use the jboss-web.xml file to deploy opencms under thecontext 'myopencms' but still keep the files in the folder 'opencms.war' <context-param><param-name>WebApplicationContext</param-name><param-value>myopencms</param-value></context-param>--><listener><listener-class>org.opencms.main.OpenCmsListener</listener-class> </listener><servlet><servlet-name>OpenCmsServlet</servlet-name><description>The main servlet that handles all requests to the OpenCms VFS.</description><servlet-class>org.opencms.main.OpenCmsServlet</servlet-class><load-on-startup>1</load-on-startup></servlet><servlet><servlet-name>OpenCmsServletErrorHandler</servlet-name><description>The error handling servlet, also servers as trigger for static export requests.</description><servlet-class>org.opencms.main.OpenCmsServletErrorHandler</servlet-class><load-on-startup>0</load-on-startup></servlet><servlet-mapping><servlet-name>OpenCmsServlet</servlet-name><url-pattern>/cms/*</url-pattern></servlet-mapping><servlet-mapping><servlet-name>OpenCmsServletErrorHandler</servlet-name><url-pattern>/opencms-errorhandler/*</url-pattern></servlet-mapping><!-- JbpmThreadsServlet --><servlet><servlet-name>JbpmThreadsServlet</servlet-name><servlet-class>org.jbpm.web.JbpmThreadsServlet</servlet-class><load-on-startup>1</load-on-startup></servlet><servlet-mapping><servlet-name>JbpmThreadsServlet</servlet-name><url-pattern>/threads</url-pattern></servlet-mapping><!-- jBPM FileServlet --><servlet><servlet-name>ProcessImageServlet</servlet-name><servlet-class>org.jbpm.webapp.servlet.ProcessImageServlet</servlet-class> </servlet><servlet-mapping><servlet-name>ProcessImageServlet</servlet-name><url-pattern>/processimage</url-pattern></servlet-mapping><session-config><session-timeout>30</session-timeout></session-config><welcome-file-list><welcome-file>index.jsp</welcome-file><welcome-file>index.html</welcome-file><welcome-file>index_export.html</welcome-file></welcome-file-list><error-page><error-code>404</error-code><location>/opencms-errorhandler/handle404</location></error-page>3. 数据库3.1 创建数据库进入数据库,手动创建名成为”jbpm ”的数据库。