6.3 部署 WAR 文件

使用 WebSphere 部署工具部署 WAR 文件。

6.3.1 WebSphere 6.1 的其他配置

如果您使用的是 WebSphere 6.1,则需要在部署 WAR 后更新 ibm-web-ext.xmi 文件。在部署 WAR 后,您需要在 ibm-web-ext.xmi 文件中添加类似如下的项:

<jspAttributes xmi:id="JSPAttribute_3" name="jdkSourceLevel" value="15"/>

名称必须为 jdkSourceLevel,值必须为 15。 对于 JSPAttribute ID,则需要使用 _3 或以上值。 有关更多信息,请参见以下链接:

完成 WAR 的部署后,请执行以下步骤:

  1. 停止 WebSphere 应用程序服务器。

  2. 按上述方法修改 ibm-web-ext.xmi 文件。文件位置应在 IBM 文档中有所指定。例如,文件可能位于以下位置:

    /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/MyNode01Cell/IDMProv_war.ear/IDMProv.war/WEB-INF
    
  3. 重启动 WebSphere 应用程序服务器。