3.5. 在Red Hat JBoss Web 服务器上安装Red Hat JBoss BRMS
Generic Deployable Package 可让客户将Red Hat JBoss BRMS 6 安装到现有的应用服务器上。下面的过程提供了在现有的Red Hat JBoss Web 服务器 2.0.1 实例上进行安装的说明。
过程 3.1. 安装 Generic Deployable Package
- 要从红帽客户支持门户下载 Generic Deployable Package,请登录 https://access.redhat.com。
- 选择
。 - 从 Product 下拉菜单里,选择 BRMS Platform。
- 从 Version 下拉菜单里,选择产品版本。
- 选择 Red Hat JBoss BRMS 6.0.2 Deployable for all supported containers 并点击 Download。
- 解压下载的归档文件并创建下面的 ZIP 归档:
jboss-brms-engine.zipjboss-brms-manager.zip
- 从
jboss-brms-manager.zip里解压business-central.war并复制到tomcat7/webapps/。 - 从
business-central.war删除.war扩展,所以这个目录现在是business-central。 - 在
tomcat7/conf/tomcat-users.xml里定义用户和角色如下:<role rolename="admin"/> <role rolename="analyst"/> <user username="user" password="password" roles="admin,analyst"/> - 编辑
tomcat7/webapps/business-central/WEB-INF里的web.xml文件,取消所有用TOMCAT-JEE-SECURITY标记的条目的注释。<!-- TOMCAT-JEE-SECURITY --> <!-- <init-param> <param-name>org.uberfire.auth.scheme</param-name> <param-value>org.uberfire.security.server.auth.JACCAuthenticationScheme</param-value> </init-param> -->应该像这样取消注释:<!-- TOMCAT-JEE-SECURITY --> <init-param> <param-name>org.uberfire.auth.scheme</param-name> <param-value>org.uberfire.security.server.auth.JACCAuthenticationScheme</param-value> </init-param> - 从 BRMS 的
business-central/WEB-INF/lib里复制kie-tomcat-integration-VERSION.jar文件到tomcat7/lib。 - 从 BRMS 的
business-central/WEB-INF/lib里复制slf4j-api-VERSION.jar和slf4j-ext-VERSION.jar文件到tomcat7/lib。 - 下载下面的文件并放入
tomcat7/lib目录。 - 添加下列 Tomcat Valve 声明到
tomcat7/conf/server.xml(在相关的 <host> 元素内部):<Valve className="org.kie.integration.tomcat.JACCValve"/> - 将
business-central/WEB-INF/classes/META-INF/services里的org.uberfire.security.auth.AuthenticationSource重命名为org.uberfire.security.auth.AuthenticationSource-ORIGIN,并将org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY重命名为org.uberfire.security.auth.AuthenticationSource。 - 在
tomcat7/bin目录里运行startup.sh启动 JBoss Web 服务器。./startup.sh - 在 Web 浏览器里访问 http://localhost:8080/business-central。
- 用你定义用户角色的
tomcat-users.xml文件提供的正确用户名和密码登录。