标签:
杂谈 |
分类: MSN搬家 |
系统在SSL中配置了自签名证书,在./stopServer.sh WebSphere_Portal
-username *** -password *** 停止失败,进程仍然存在,错误信息如下:
************ Start Display Current Environment ************
Host Operating System is Linux, version 2.6.9-55.ELsmp
Java version = J2RE 1.4.2 IBM build cxia32142ifx-20060209 (SR4-1) (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = /usr/IBM/WebSphere/AppServer
user.install.root = /usr/IBM/WebSphere/AppServer/profiles/wp_profile
Java Home = /usr/IBM/WebSphere/AppServer/java/jre
ws.ext.dirs = /usr/IBM/WebSphere/AppServer/java/lib:/usr/IBM/WebSphere/AppServer/classes:/usr/IBM/WebSphere/AppServer/lib:/usr/IBM/WebSphere/AppServer/installedChannels:/usr/IBM/WebSphere/AppServer/lib/ext:/usr/IBM/WebSphere/AppServer/web/help:/usr/IBM/WebSphere/AppServer/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime:/opt/mqm/java/lib:/opt/wemps/lib
Classpath = /usr/IBM/WebSphere/AppServer/profiles/wp_profile/properties:/usr/IBM/WebSphere/AppServer/properties:/usr/IBM/WebSphere/AppServer/lib/bootstrap.jar:/usr/IBM/WebSphere/AppServer/lib/j2ee.jar:/usr/IBM/WebSphere/AppServer/lib/lmproxy.jar:/usr/IBM/WebSphere/AppServer/lib/urlprotocols.jar
Java Library path = /usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/bin:/opt/mqm/java/lib:/opt/wemps/lib:/usr/lib
Current trace specification = *=info
************* End Display Current Environment *************
[9/11/09 19:15:17:843 CST] 0000000a ManagerAdmin I
TRAS0017I: The startup trace state is
*=info.
[9/11/09 19:15:17:910 CST] 0000000a AdminTool A
ADMU0128I: Starting tool with the wp_profile
profile
[9/11/09 19:15:17:911 CST] 0000000a AdminTool A
ADMU3100I: Reading configuration for
server: WebSphere_Portal
[9/11/09 19:15:21:904 CST] 0000000a WsServerStop E
ADMU3002E: Exception attempting to process
server WebSphere_Portal
[9/11/09 19:15:21:908 CST] 0000000a WsServerStop E
ADMU3007E: Exception
com.ibm.websphere.management.exception.ConnectorException:
ADMC0053E: The system cannot create a
SOAP connector to connect to host server01 at port
10033 with SOAP connector security enabled.
[9/11/09 19:15:21:909 CST] 0000000a WsServerStop A
ADMU3007E: Exception
com.ibm.websphere.management.exception.ConnectorException:
ADMC0053E: The system cannot create a SOAP
connector to connect to host server01 at port 10033 with SOAP
connector security enabled.
at
com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:405)
at
com.ibm.ws.management.tools.LaunchUtils.getAdminClient(LaunchUtils.java:348)
at
com.ibm.ws.management.tools.LaunchUtils.getAdminClient(LaunchUtils.java:288)
at
com.ibm.ws.management.tools.WsServerStop.runTool(WsServerStop.java:296)
at
com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:226)
at
com.ibm.ws.management.tools.WsServerStop.main(WsServerStop.java:98)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at
java.lang.reflect.Method.invoke(Method.java:391)
at
com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:219)
at
java.lang.Thread.run(Thread.java:570)
Caused by: java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:44)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:315)
at
com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:296)
... 12 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException:
[SOAPException:
faultCode=SOAP-ENV:Client; msg=Error opening
socket:
javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException:
Certificate not Trusted;
targetException=java.lang.IllegalArgumentException:
Error opening socket:
javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException:
Certificate not Trusted]
at
com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:293)
at
com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPConnectorClient.java:188)
... 17 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted; targetException=java.lang.IllegalArgumentException:
Error opening socket:
javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException:
Certificate not Trusted]
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown
Source)
at org.apache.soap.rpc.Call.invoke(Unknown
Source)
at
com.ibm.ws.management.connector.soap.SOAPConnectorClient$2.run(SOAPConnectorClient.java:264)
at
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at
com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:257)
... 18 more
[9/11/09 19:15:21:915 CST] 0000000a AdminTool A
ADMU0509I: The server "WebSphere_Portal"
cannot be reached. It appears to be stopped.
[9/11/09 19:15:21:916 CST] 0000000a AdminTool A
ADMU0211I: Error details may be seen in the
file:
/usr/IBM/WebSphere/AppServer/profiles/wp_profile/logs/WebSphere_Portal/stopServer.log
-----------------------------------------------------------------------------
解决方案如下:
vi
/usr/IBM/WebSphere/AppServer/profiles/wp_profile/properties/soap.client.props(文件路径可能略有不同)
修改其中
com.ibm.ssl.keyStore=/usr/IBM/WebSphere/AppServer/profiles/wp_profile/etc/DummyClientKeyFile.jks
com.ibm.ssl.keyStorePassword={xor}CDo9Hgw\=
com.ibm.ssl.trustStore=/usr/IBM/WebSphere/AppServer/profiles/wp_profile/etc/DummyClientTrustFile.jks
com.ibm.ssl.trustStorePassword={xor}CDo9Hgw\=
的 证书 ,以及密码,替换为在Portal控制台SSL中配置的相应证书以及密码。
问题解决!
************ Start Display Current Environment ************
Host Operating System is Linux, version 2.6.9-55.ELsmp
Java version = J2RE 1.4.2 IBM build cxia32142ifx-20060209 (SR4-1) (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = /usr/IBM/WebSphere/AppServer
user.install.root = /usr/IBM/WebSphere/AppServer/profiles/wp_profile
Java Home = /usr/IBM/WebSphere/AppServer/java/jre
ws.ext.dirs = /usr/IBM/WebSphere/AppServer/java/lib:/usr/IBM/WebSphere/AppServer/classes:/usr/IBM/WebSphere/AppServer/lib:/usr/IBM/WebSphere/AppServer/installedChannels:/usr/IBM/WebSphere/AppServer/lib/ext:/usr/IBM/WebSphere/AppServer/web/help:/usr/IBM/WebSphere/AppServer/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime:/opt/mqm/java/lib:/opt/wemps/lib
Classpath = /usr/IBM/WebSphere/AppServer/profiles/wp_profile/properties:/usr/IBM/WebSphere/AppServer/properties:/usr/IBM/WebSphere/AppServer/lib/bootstrap.jar:/usr/IBM/WebSphere/AppServer/lib/j2ee.jar:/usr/IBM/WebSphere/AppServer/lib/lmproxy.jar:/usr/IBM/WebSphere/AppServer/lib/urlprotocols.jar
Java Library path = /usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/bin:/opt/mqm/java/lib:/opt/wemps/lib:/usr/lib
Current trace specification = *=info
************* End Display Current Environment *************
[9/11/09 19:15:17:843 CST] 0000000a ManagerAdmin
[9/11/09 19:15:17:910 CST] 0000000a AdminTool
[9/11/09 19:15:17:911 CST] 0000000a AdminTool
[9/11/09 19:15:21:904 CST] 0000000a WsServerStop
[9/11/09 19:15:21:908 CST] 0000000a WsServerStop
[9/11/09 19:15:21:909 CST] 0000000a WsServerStop
Caused by: java.lang.reflect.InvocationTargetExceptio
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableExc
Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted; targetException=java.lang.IllegalArgumentException
[9/11/09 19:15:21:915 CST] 0000000a AdminTool
[9/11/09 19:15:21:916 CST] 0000000a AdminTool
-----------------------------------------------------------------------------
解决方案如下: