互联网服务jdkWAS

WAS如何更换JDK

本WAS的版本为8.5.0,项目部署在tomcat上面没有问题,部署在WAS上面报错,经开发人员检查说是WAS自带的JDK有问题,请教如何更换WAS的JDK。显示全部

本WAS的版本为8.5.0,项目部署在tomcat上面没有问题,部署在WAS上面报错,经开发人员检查说是WAS自带的JDK有问题,请教如何更换WAS的JDK。

收起
参与19

查看其它 3 个回答wangxuefeng266的回答

wangxuefeng266wangxuefeng266软件架构设计师IBM

切换所有Profile的sdk使用版本

在DM、node和server启动的时候执行:

[root@was8555bin]# ./managesdk.sh -enableProfileAll -sdkname 1.8_64 -enableServers

CWSDK1017I:Profile Dmgr01 now enabled to use SDK 1.8_64.

CWSDK1024I:The node default SDK setting for federated profile Node01 has been saved in themaster configuration repository.

CWSDK1025I:A synchronization operation is required before configuration changes tofederated profile Node01 can be used.

CWSDK1017I:Profile Node01 now enabled to use SDK 1.8_64.

CWSDK1001I:Successfully performed the requested managesdk task.

[root@was8555bin]#

检查都安装了什么版本的jdk:

managesdk -listAvailable -verbose

[root@was8555bin]# ./managesdk.sh -listAvailable -verbose

CWSDK1003I:Available SDKs :

CWSDK1005I:SDK name: 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1005I:SDK name: 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.location.1.6_64=${WAS_INSTALL_ROOT}/java

- com.ibm.websphere.sdk.platform.1.6_64=linux

-com.ibm.websphere.sdk.architecture.1.6_64=x86_64

-com.ibm.websphere.sdk.nativeLibPath.1.6_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1001I:Successfully performed the requested managesdk task.

[root@was8555bin]#

检查每个profile都使用的哪个版本的jdk

[root@was8555bin]# ./managesdk.sh -listEnabledProfileAll -verbose

CWSDK1004I:Profile Dmgr01 :

CWSDK1006I:PROFILE_COMMAND_SDK = 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

- com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1008I:Node Dmgr01 SDK name: 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1009I:Server dmgr SDK name: 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

- com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1004I:Profile Node01 :

CWSDK1006I:PROFILE_COMMAND_SDK = 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1008I:Node Node01 SDK name: 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

- com.ibm.websphere.sdk.architecture.1.8_64=x86_64

-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1009I:Server server01 SDK name: 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1009I:Server nodeagent SDK name: 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1001I:Successfully performed the requested managesdk task.

[root@was8555bin]#

managesdk -listEnabledProfile -profileName AppSrv02 -verbose

[root@was8555bin]# ./managesdk.sh -listEnabledProfile -profileName Node01 -verbose

CWSDK1004I:Profile Node01 :

CWSDK1006I:PROFILE_COMMAND_SDK = 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

- com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1008I:Node Node01 SDK name: 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1009I:Server server01 SDK name: 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1009I:Server nodeagent SDK name: 1.8_64

- com.ibm.websphere.sdk.version.1.8_64=1.8

- com.ibm.websphere.sdk.bits.1.8_64=64

-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64

- com.ibm.websphere.sdk.platform.1.8_64=linux

-com.ibm.websphere.sdk.architecture.1.8_64=x86_64

-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1001I:Successfully performed the requested managesdk task.

[root@was8555bin]#

互联网服务 · 2016-10-28
浏览3748
  • 很全,都列出来了!楼主,记得先安装JDK7才行。
    2016-11-07

回答者

wangxuefeng266
软件架构设计师IBM

wangxuefeng266 最近回答过的问题

回答状态

  • 发布时间:2016-10-28
  • 关注会员:5 人
  • 回答浏览:3748
  • X社区推广