将项目发布至 WebSphere Application Server V5.x

服务器工具功能部件允许您在本地或远程独立安装的 WebSphere® Application Server V5.x 上发布项目。 当对项目或资源选择在服务器上运行时,服务器工具将自动执行下列操作:

注意:对于远程 WebSphere Application Server V6.0,“代理控制器”不再是必需的。您必须运行 WebSphere 文件传输 servlet 应用程序 filetransfer.ear。缺省情况下,此应用程序安装在 WebSphere V6.0 服务器上,并且也是在该服务器上启动的。

要在 WebSphere Application Server V5.x 上发布项目,遵循下列步骤:

  1. 安装 WebSphere Application Server V5.x 和“代理控制器”
  2. 定义 WebSphere Application Server 以进行发布
  3. (可选)如果在安装 WebSphere Application Server 时安装 IBM® HTTP Server,并且想要在应用程序服务器中使用 IBM HTTP Server 进行测试,则选择服务器编辑器的“概述”页上的生成插件配置复选框。 将在 WebSphere 部署目录中的以下目录下面生成和发布 plugin-cfg.xml 文件:
    config/cells
    有关替换缺省 WebSphere Application Server 文件的更多信息,参阅有关将已发布的服务器配置转换为原始服务器配置的相关主题。
  4. 缺省情况下,当 WebSphere Application Server 启动时,不会将机器的系统类路径添加至应用程序服务器进程。 如果您确实想将系统类路径添加至应用程序服务器进程,则在启动服务器之前执行下列步骤:
    1. 停止服务器。
    2. 编辑 x:\plugins\com.ibm.etools.websphere.tools\config 目录中的 pluginconfig.xml 文件,其中 x 是“代理控制器”的安装目录。
    3. 对于以下应用程序,将 CLASSPATH 变量的 position 参数从 replace 更改为 prepend
      • 对于 WebSphere Application Server V5: wteRemoteV5.exe
      • 对于 WebSphere Application Server V5.1: wteRemoteV51.exe
      例如,您的更改看起来应该与下列内容相似:
      <Application configuration="default" executable="wteRemoteV5.exe" location="%WAS_HOME_V5%" path="%WAS_HOME_V5%\java\bin\javaw.exe">
      	<Variable name="CLASSPATH" position="prepend" value="%RASERVER_HOME%\plugins\com.ibm.etools.websphere.tools\lib\wasToolsCommonV5.jar;%RASERVER_HOME%\plugins\com.ibm.etools.websphere.tools\lib\wteServersV5.jar;%LOGUTIL_CP%;%WAS_HOME_V5%\properties;%WAS_HOME_V5%\lib\bootstrap.jar;%WAS_HOME_V5%\lib\lmproxy.jar"/>
      	<Variable name="PATH" position="prepend" value="%WAS_HOME_V5%\bin"/>
      </Application>
    4. 保存更改。
    5. 重新启动“代理控制器”。
  5. 将项目添加至服务器
  6. 在“导航器”视图中,右键单击想要在应用程序服务器上运行的项目并选择在服务器上运行 “选择服务器”对话框打开。
  7. 选择刚才创建的 WebSphere 服务器并单击完成 当服务器启动时,服务器工具将自动执行下列任务:
    • 在目标应用程序服务器上发布服务器配置。
    • 发布想要在目标应用程序服务器上测试的应用程序。
    • 启动服务器。
    重要: 在远程服务器正在启动时或已启动之后,不要停止“代理控制器”;否则,可能无法正确停止远程服务器中的服务器进程。于是,您可能需要手工终止远程机器中的远程服务器进程,例如,通过使用 Windows® 上的“Windows 任务管理器”。
  8. 在应用程序服务器上完成测试项目之后,停止服务器
  9. 在远程机器上停止“代理控制器”。
注: 当发布至远程 WebSphere 服务器时,远程机器必须与本地机器具有相同的代码页。使用不同代码页运行本地和远程服务器不受支持,而且可能导致控制台毁坏。
使用条款 | 反馈
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.