将 CM Server 与 IBM WebSphere Application Server 的现有安装结合使用

可以将 CM Server 与 IBM® WebSphere® Application Server 的现有安装(而不是包含在 CM Server 中的 WebSphere Application Server V6.1)结合使用。

如果已随 CM Server 一起安装了 Rational® ClearCase® 或 Rational ClearQuest®(WebSphere Application Server V6.1 已安装且正在运行 CM Server),或者如果已安装了 WebSphere Application Server 且希望 CM Server 在不同于所提供的 WebSphere Application Server V6.1 的 WebSphere Application Server 版本中运行,那么以下指示信息适用于此种情况。

请注意,您创建的 WebSphere Application Server 概要文件的端口可能与 CM Server 包含的 WebSphere ApplicationServer V6.1 的缺省端口不同。例如: 请参阅配置 CM Server 以获取更多信息。

有关 WebSphere Application Server 的信息,请访问 http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp

在 UNIX® 系统和 Linux 上部署 CM Server

以下脚本将现有 CM Server 安装部署到 WebSphere Application Server 中。将以下内容复制到 shell 脚本文件,更改许可权以便该文件成为可执行文件,然后运行该文件:
#!/bin/sh
WAS_BIN=/opt/IBM/WebSphere/AppServer/bin
export WAS_BIN; 

cd /opt/IBM/RationalSDLC/common/CM/scripts
$WAS_BIN/wsadmin.sh -f installAll.jacl -rationalDir /opt/ibm/RationalSDLC
$WAS_BIN/stopServer.sh server1 
$WAS_BIN/startServer.sh server1 

禁用现有 WebSphere Application Server

要禁用 WebSphere Application Server 的现有版本,可使用此命令将其停止:
/opt/IBM/RationalSDLC/common/eWAS/bin/stopServer.sh server1 cmprofile
cd /etc
find . -name '*ewas*' -print 
输出列出了 WebSphere Application Server 启动和关闭文件:
./init.d/ewas_startup
./init.d/ewas_shutdown
./rc0.d/K30ewas_shutdown
./rc3.d/S99ewas_startup 
除去所有启动和关闭文件。

将 IBM HTTP Server 重定向到 WebSphere Application Server

缺省情况下,IBM HTTP Server 将某些 URL 重定向到 WebSphere Application Server 端口。要使 IBM HTTP Server 重新定向到 WebSphere Application Server 安装,请编辑 plugin-cfg.xml/opt/rational/common/eWAS/profiles/plugin-cfg.xml)。 此文件引用自 /opt/rational/common/IHS/conf/httpd.conf。 如果您希望将插件文件置于别处,可以将其移走,然后更新 httpd.conf

修改 plugin-cfg.xml,将端口号更新为创建 WebSphere Application Server 概要文件时选择的端口。然后用以下命令将 IBM HTTP Server 复位以使更改生效:
/opt/IBM/RationalSDLC/common/IHS/bin/ihs_restart
您可以用此 URL 验证更新:http://localhost/TeamWeb/services/Team

在 Windows 上部署 CM Server

以下脚本将现有 CM Server 安装部署到 WebSphere Application Server 中。将以下内容复制到批处理文件中,然后运行该文件:
set WAS_BIN=C:\Progra~1\IBM\WebSphere\AppServer\bin
c:
cd "Program Files\IBM\RationalSDLC\common\CM\scripts"
call %WAS_BIN%/wsadmin.bat -f installAll.jacl -rationalDir "C:/Program Files/IBM/RationalSDLC"
call %WAS_BIN%/stopServer.bat server1 
call %WAS_BIN%/startServer.bat server1 

(可选)可以从 Windows® 服务控制面板重新启动 server1

禁用现有 WebSphere Application Server

要禁用 WebSphere Application Server,请使用 Windows 服务控制面板来停止和禁用 WebSphere Application Server 概要文件(名为 cmserver)。您可以停止并禁用服务或删除服务。

将 IBM HTTP Server 重定向到 WebSphere Application Server

缺省情况下,IBM HTTP Server 将某些 URL 重定向到 WebSphere Application Server 端口。要使 IBM HTTP Server 重定向到 WebSphere Application Server 安装,请编辑 plugin-cfg.xmlC:\Program Files\IBM\RationalSDLC\ common\eWAS\profiles\plugin-cfg.xml)。此文件引用自 httpd.conf(例如,C:\Program Files\IBM\RationalSDLC\common\IHS\conf\httpd.conf)。如果您希望将插件文件置于别处,可以将其移走,然后更新 httpd.conf

修改 plugin-cfg.xml,将端口号更新为创建 WebSphere Application Server 概要文件时选择的端口。然后用以下命令将 IBM HTTP Server 复位以使更改生效:
C:\Program Files\IBM\RationalSDLC\common\IHS\bin\ihs_restart
您可以用此 URL 验证更新:http://localhost/TeamWeb/services/Team

反馈