RedHat 6.4 安装WAS 7.0 启动失败com.ibm.websphere.ssl.SSLException

问题描述

RedHat 6.4 安装 WAS 7.0,安装完成之后启动WAS失败,异常信息如下:

[5/7/15 9:59:55:185 CST] 00000000 WsServerImpl  E   WSVR0100W: An error occurred initializing, server1 [class com.ibm.ws.runtime.component.ServerImpl]
com.ibm.ws.exception.ConfigurationError: com.ibm.websphere.ssl.SSLException: com.ibm.websphere.ssl.SSLException: SPJYXZXKSDXT-APP-01: SPJYXZXKSDXT-APP-01
    at com.ibm.ws.ssl.core.SSLComponentImpl.initialize(SSLComponentImpl.java:208)
    at com.ibm.ws.runtime.component.ContainerHelper.initWsComponent(ContainerHelper.java:1166)
    at com.ibm.ws.runtime.component.ContainerHelper.initializeComponent(ContainerHelper.java:1073)
    at com.ibm.ws.runtime.component.ContainerHelper.initializeComponents(ContainerHelper.java:874)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:780)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:754)
    at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:350)
    at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:280)
    at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:214)
    at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:666)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:59)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:599)
    at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:213)
    at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:93)
    at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:74)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:599)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
    at org.eclipse.core.launcher.Main.run(Main.java:981)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:330)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:108)
Caused by: com.ibm.websphere.ssl.SSLException: com.ibm.websphere.ssl.SSLException: SPJYXZXKSDXT-APP-01: SPJYXZXKSDXT-APP-01
    at com.ibm.ws.ssl.config.SSLConfigManager.initializeServerSSL(SSLConfigManager.java:322)
    at com.ibm.ws.ssl.core.SSLComponentImpl.initialize(SSLComponentImpl.java:145)
    ... 31 more
Caused by: com.ibm.websphere.ssl.SSLException: SPJYXZXKSDXT-APP-01: SPJYXZXKSDXT-APP-01
    at com.ibm.ws.ssl.config.KeyStoreManager.checkIfKeyStoreExistsAndCreateIfNot(KeyStoreManager.java:1592)
    at com.ibm.ws.ssl.config.SSLConfigManager.parseSecureSocketLayer1(SSLConfigManager.java:1131)
    at com.ibm.ws.ssl.config.SSLConfigManager.parseSSLConfig(SSLConfigManager.java:667)
    at com.ibm.ws.ssl.config.SSLConfigManager.initializeServerSSL(SSLConfigManager.java:234)
    ... 32 more
Caused by: java.net.UnknownHostException: SPJYXZXKSDXT-APP-01: SPJYXZXKSDXT-APP-01
    at java.net.InetAddress.getLocalHost(InetAddress.java:1380)
    at com.ibm.ws.ssl.config.CertificateManager.chainedCertificateCreate(CertificateManager.java:341)
    at com.ibm.ws.ssl.config.KeyStoreManager.checkIfKeyStoreExistsAndCreateIfNot(KeyStoreManager.java:1580)
    ... 35 more

解决办法

修改/ect/hosts文件,示例修改如下:

127.0.0.1       localhost localhost.localdomain localhost4 localhost4.localdomain4 SPJYXZXKSDXT-APP-01.site SPJYXZXKSDXT-APP-01
10.100.12.11    localhost localhost.localdomain localhost6 localhost6.localdomain6 SPJYXZXKSDXT-APP-01 SPJYXZXKSDXT-APP-01

修改完之后,重新启动Linux再试就可以了

参考资料

http://m.blog.csdn.net/blog/yuyunliu/9380799

http://www.cnblogs.com/hanxianlong/p/3379699.html

posted @ 2015-05-07 11:35  小龙在线  阅读(1047)  评论(0编辑  收藏  举报