我的机器上安装了JDK 7。
我在Websphere 8.5.5.0上安装了JDK 7修补程序
当我试图运行以下命令时,会得到一个错误。
命令
managesdk.bat -enableProfile -profileName AppSrv01 -sdkName 1.7_64
错误
com.ibm.websphere.management.exception.AdminException: com.ibm.websphere.management.exception.AdminException: CWSDK0009E:意外异常CWSDK0009E CWLCA0012E: sdk 1.7_64在节点XXXXXX上不可用
其中XXXXXX是我的节点名。
有人知道怎么解决这个问题吗?
PS:清单确实告诉我我已经安装了JDK 7。
C:\程序文件(x86)\IBM\WebSphere\AppServer\bin>managesdk -listAvailable
CWSDK1003I:可用SDK:
CWSDK1005I: SDK名称: 1.6_64
CWSDK1005I: SDK名称: 1.7_64
CWSDK1001I:成功地执行了请求的managesdk任务。
发布于 2016-04-15 15:45:09
导航到/bin并执行以下命令。
Win: managesdk.bat -listAvailable -verbose AIX: managesdk.sh -listAvailable -verbose
您将得到与AIX相同的输出:
com.ibm.websphere.sdk.location.1.6_64=${WAS_INSTALL_ROOT}/java : CWSDK1003I: CWSDK1005I: SDK名称: 1.6_64 - com.ibm.websphere.sdk.version.1.6_64=1.6 - com.ibm.websphere.sdk.bits.1.6_64=64 - com.ibm.websphere.sdk.platform.1.6_64=aix -com.ibm.websphere.sdk.platform.1.6_64=aix- com.ibm.websphere.sdk.nativeLibPath.1.6_64=${WAS_INSTALL_ROOT}/lib/native/aix/ppc_64/
com.ibm.websphere.sdk.location.1.7_64=${WAS_INSTALL_ROOT}/java_1.7_64 : CWSDK1005I: SDK名称: 1.7_64 - com.ibm.websphere.sdk.version.1.7_64=1.7 - com.ibm.websphere.sdk.bits.1.7_64=64 - com.ibm.websphere.sdk.platform.1.7_64=aix -com.ibm.websphere.sdk.platform.1.7_64=aix- com.ibm.websphere.sdk.nativeLibPath.1.7_64=${WAS_INSTALL_ROOT}/lib/native/aix/ppc_64/
检查location.1.7_64路径并确保路径存在。
还要确保您的AppServer dir对所有用户都具有所有文件权限。
一旦您这样做,请执行下面提到的命令。
AIX: managesdk.sh -setCommandDefault -sdkname 1.7_64 WIN: managesdk.sh -setCommandDefault -sdkname 1.7_64
AIX: managesdk.sh -setNewProfileDefault -sdkname 1.7_64 WIN: managesdk.sh -setNewProfileDefault -sdkname 1.7_64
AIX: managesdk.sh -enableProfileAll -sdkname 1.7_64 -enableServers WIN: managesdk.sh -enableProfileAll -sdkname 1.7_64 -enableServers
现在检查!
干杯!
https://stackoverflow.com/questions/28730202
复制相似问题