与其他应用程序集成 > 集成的软件管理 > 软件配置管理集成 > 安装和配置 > 客户端安装和配置 > IBM Rational ClearCase 安装和配置 > 维护过程 > 如何重新启动 IBM Rational ClearCase 适配器
  
如何重新启动 IBM Rational ClearCase 适配器
如果遇到下列系统错误之一,请重新启动 IBM Rational ClearCase 适配器:
方法服务器启动过程中,如果适配器有故障而未运行,系统将显示一条错误消息。
尝试从 Windchill 启动任何 IBM Rational ClearCase 浏览器时会显示一条错误消息。
重新启动 IBM Rational ClearCase 适配器:
如果采用远程安装方式
如果需要在单独的 Java 虚拟机 (JVM) 而非 Windchill 方法服务器上运行 IBM Rational ClearCase 适配器
本部分介绍如何配置适配器才能使其在除 Windchill JVM 之外的其他 JVM 上运行。
IBM Rational ClearCase 适配器安装文件
下节介绍如何在远程计算机上安装 IBM Rational ClearCase 适配器的文件。
1. 在运行适配器的计算机上创建 ADAPTER_HOME 目录,例如 D:\SCMI-OOP
2. 通过 Windchill“快速链接”下拉列表访问“软件下载”页面。
3. 从 PTC 软件下载页面将 cc.zip 文件复制到客户端计算机上。
编辑 bat 文件启动 IBM Rational ClearCase 适配器
下节介绍如何在远程计算机上安装 IBM Rational ClearCase 适配器的文件。
1. 将 cc.zip 中包含的 startCCADapter.bat 复制到 <ADAPTER_HOME> 目录。
2. 编辑 startCCADapter.bat。
3. 指定以下值:
ADAPTER_HOME - 指定 cc.zip 文件中所有 jar 文件解压缩到的目录。例如:
set ADAPTER_HOME=D:\SCMI-OOP
JAVA_HOME - 指定 JDK 的位置 (位于适配器所在的计算机上)。JDK 版本 1.7 应安装在客户端计算机上。例如,
set JAVA_HOME=c:\jdk\jdk1.7_0
* 
另外,请验证 IEPROPFILE、IEMYNAME、IENAMINGSERVICENAME 都具有如 startCCAdapter.bat 文件中注释中所述的正确值。
例如,
set JAVA_HOME=c:\jdk\jdk<version number>
ADAPTER_NAME - 指定在 Windchill 中创建的适配器的名称。
例如,
set ADAPTER_NAME=$WC.com.ptc.swlink.scm.defaultAdapter$
* 
另外,还应验证 IEPROPFILE、IENAMINGSERVICENAME 均具有 startCCAdapter.bat 文件的注释中所述的正确值。
install.jar - 添加 install.jar 至类路径,其中设置了所有类路径。
例如,
set CLASSPATH=%SCM_HOME%\install.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%;%CLASSPATH%
wt.home - 将 wt.home 属性添加至 java 命令中的注释
“rem The following line starts the scm adapter as a standalone process".
例如,
%JAVA_HOME%\bin\java.exe -cp "%CLASSPATH%" -DpropFile="%IEPROPFILE%"
-DruntimeServiceName="%ADAPTER_NAME%" -DserviceName="%ADAPTER_NAME%"
-DnamingServiceName="%IENAMINGSERVICENAME%"
-Dwt.home="%SCM_HOME%" com.ptc.windchill.scm.adapter.clearcase.
CcMultithreadedAdapter
startCCAdapter.bat 示例:
@echo off
rem Start up script for Windchill Integrations for
rem Embedded Software IBM Rational ClearCase Adapter

rem *****************************************
rem User configured properties
rem set JAVA_HOME to the install location of the JDK
set JAVA_HOME=
rem set ADAPTER_HOME to the directory where the file cc.zip was extracted
set ADAPTER_HOME=
rem ADAPTER_NAME should be the set to the name the ClearCase adapter that you created
rem in Windchill Integrations for Embedded Software.
set ADAPTER_NAME=$WC.com.ptc.swlink.scm.defaultAdapter$
rem *****************************************

rem IEPROPFILE should look like..
rem ldap://cn=manager:manager@test.ptc.com/dc=IeProps,dc=test...
rem and should be the same as 'seeAlso' value seen in the file
rem WT_HOME\codebase\WEB-INF\ie.properties
set IEPROPFILE=$WC.com.ptc.swlink.scm.iepropfile$
rem IENAMINGSERVICENAME should be the same as the value of
rem wt.federation.ie.namingService
rem in WT_HOME\codebase\wt.properties
set IENAMINGSERVICENAME=$WC.com.ptc.swlink.scm.ccConfig.host2$.namingService
set SCM_HOME=%ADAPTER_HOME%
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\servlet.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\ie3rdpartylibs.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\ieWeb.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\jmxcoreWeb.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\wc3rdpartylibs.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\CommonCore.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\MetaSpecCommon.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\cc.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%\install.jar;%CLASSPATH%
set CLASSPATH=%SCM_HOME%;%CLASSPATH%
title SCM Adapter
echo -------------------------------------------------------------------------------
echo Starting SCM Adapter
echo.
echo JAVA_HOME = %JAVA_HOME%
echo ADAPTER_HOME = %ADAPTER_HOME%
echo ADAPTER_NAME = %ADAPTER_NAME%
echo.
echo CLASSPATH = %CLASSPATH%
echo.
if not exist %JAVA_HOME%\bin\java.exe (
echo ERROR: Cannot find Java command - check JAVA_HOME value
echo.
pause
exit
)
if not exist %ADAPTER_HOME% (
echo ERROR: %ADAPTER_HOME% does not exist - check ADAPTER_HOME value
echo.
pause
exit
)
rem The following line starts the scm adapter as a standalone process
rem %JAVA_HOME%\bin\java.exe -cp "%CLASSPATH%" -DpropFile="%IEPROPFILE%"
rem -DruntimeServiceName="%ADAPTER_NAME%" -DserviceName="%ADAPTER_NAME%"
rem -DnamingServiceName="%IENAMINGSERVICENAME%" -Dwt.home="%SCM_HOME%"
rem com.ptc.swlink.scm.adapter.clearcase.CcMultithreadedAdapter
pause
启动 IBM Rational ClearCase 适配器
最后一步是启动 IBM Rational ClearCase 适配器。运行适配器后立即启动 Windchill 服务器 servlet 引擎。
1. 使用 startCCAdapter.bat 文件,在适配器所在的计算机上启动适配器。
2. 启动适配器后立即启动 Windchill 服务器 servlet 引擎。适配器现在应已配置成功,并远程运行。