You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在AIX服务器上搭配Java 11安装IBM WebSphere Liberty 24.0.0.6

问题描述

在AIX服务器上执行以下IBM Installation Manager命令,尝试安装IBM WebSphere Liberty ND 24.0.0.6与IBM Java 11:

./imcl install com.ibm.websphere.liberty.ND_24.0.6.20240603_2002,com.ibm.java.jdk.v11_11.0.2200.20240215_0225 \
-repositories https://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.ND,https://www.ibm.com/software/repositorymanager/com.ibm.java.jdk.v11 \
-installationDirectory /usr/IBM/WebSphere/Liberty/wlp \
-sharedResourcesDirectory /usr/IBM/IMShared \
-secureStorageFile credential.store \
-masterPasswordFile master_password_file.txt \
-acceptLicense

执行后触发错误:

CRIMA1151E ERROR: The "com.ibm.java.jdk.v11_11.0.2200.20240215_0225" feature cannot be found in package com.ibm.websphere.liberty.ND (IBM WebSphere Application Server Liberty Network Deployment 24.0.0.6).

实际问题是命令未正确访问Java 11的独立仓库,仅从Liberty仓库(仅提供Java 8)检索,导致找不到Java 11包。需获取正确的手动安装命令,后续将其转换为Ansible剧本部署。

正确安装命令及说明

方式1:自动匹配兼容版本(推荐)

不指定Java 11的具体版本号,让Installation Manager自动从对应仓库获取与Liberty 24.0.0.6兼容的Java 11版本,同时用空格分隔两个安装包(避免IM误将Java包视为Liberty的子特性):

./imcl install com.ibm.websphere.liberty.ND_24.0.0.6 com.ibm.java.jdk.v11 \
-repositories https://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.ND,https://www.ibm.com/software/repositorymanager/com.ibm.java.jdk.v11 \
-installationDirectory /usr/IBM/WebSphere/Liberty/wlp \
-sharedResourcesDirectory /usr/IBM/IMShared \
-secureStorageFile credential.store \
-masterPasswordFile master_password_file.txt \
-acceptLicense

方式2:指定具体版本(需验证版本存在)

若必须指定精确版本,同样用空格分隔两个包,确保IM分别从对应仓库检索:

./imcl install com.ibm.websphere.liberty.ND_24.0.6.20240603_2002 com.ibm.java.jdk.v11_11.0.2200.20240215_0225 \
-repositories https://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.ND,https://www.ibm.com/software/repositorymanager/com.ibm.java.jdk.v11 \
-installationDirectory /usr/IBM/WebSphere/Liberty/wlp \
-sharedResourcesDirectory /usr/IBM/IMShared \
-secureStorageFile credential.store \
-masterPasswordFile master_password_file.txt \
-acceptLicense

核心修复点

原命令使用逗号分隔两个包,导致Installation Manager错误地从Liberty ND的仓库中查找Java 11包(而Liberty仓库不包含Java 11资源)。改用空格分隔后,IM会分别遍历指定的两个仓库,为每个包匹配对应来源。

内容的提问来源于stack exchange,提问作者Jason Skeel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 21:23:21