was6.1服务器启动后,无法停止的问题

was6.1服务器启动后,无法停止的问题,并出现如下异常:

[11-3-29 11:08:45:351 CST] 0000000a WsServerStop  E   ADMU3002E: 尝试处理服务器 server1 时发生异常
[11-3-29 11:08:45:351 CST] 0000000a WsServerStop  E   ADMU3007E: 异常 com.ibm.websphere.management.exception.ConnectorException: ADMC0053E: 启用 SOAP 连接器安全性时,系统无法创建连接到端口 8881 上的主机 CNIAPP01.cmc-xinnuo.com 的 SOAP 连接器。
[11-3-29 11:08:45:351 CST] 0000000a WsServerStop  A   ADMU3007E: 异常 com.ibm.websphere.management.exception.ConnectorException: ADMC0053E: 启用 SOAP 连接器安全性时,系统无法创建连接到端口 8881 上的主机 CNIAPP01.cmc-xinnuo.com 的 SOAP 连接器。
 at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:476)
 at com.ibm.ws.management.tools.LaunchUtils.getAdminClient(LaunchUtils.java:372)
 at com.ibm.ws.management.tools.LaunchUtils.getAdminClient(LaunchUtils.java:312)
 at com.ibm.ws.management.tools.WsServerStop.runTool(WsServerStop.java:325)
 at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
 at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
 at com.ibm.ws.management.tools.WsServerStop.main(WsServerStop.java:108)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:615)
 at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:183)
 at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:90)
 at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:72)
 at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:615)
 at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
 at org.eclipse.core.launcher.Main.run(Main.java:973)
 at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:245)
 at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:73)
Caused by: java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
 at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:331)
 ... 25 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: No trusted certificate found; targetException=java.lang.IllegalArgumentException: Error opening socket: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: No trusted certificate found]
 at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:338)
 at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPConnectorClient.java:175)
 ... 30 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: No trusted certificate found; targetException=java.lang.IllegalArgumentException: Error opening socket: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: No trusted certificate found]
 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$4.run(SOAPConnectorClient.java:303)
 at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
 at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:296)
 ... 31 more

[11-3-29 11:08:45:366 CST] 0000000a AdminTool     A   ADMU0509I: 无法到达 server“server1”。服务器看上去已停止。
[11-3-29 11:08:45:366 CST] 0000000a AdminTool     A   ADMU0211I: 在文件 c:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv02\logs\server1\stopServer.log 中可看到错误的详细信息
[11-3-29 11:08:45:491 CST] 00000016 WindowsServic 3   inputRec == Service failed to stop.  stopServer return code -10
[11-3-29 11:08:45:491 CST] 0000000a WindowsServic 1   retCode from childProcess.waitFor() is -10
[11-3-29 11:08:45:491 CST] 0000000a WindowsServic 3   -- interrupt the thread that is collecting stdout
[11-3-29 11:08:46:491 CST] 0000000a WindowsServic 3   exitCode = -10

 

如果看到以上异常情况,可以修改服务器上的SECURITY.XML配置文件来进行处理!

修改方法为:

<security:Security xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:orb.securityprotocol="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.securityprotocol.xmi" xmlns:security="http://www.ibm.com/websphere/appserver/schemas/5.0/security.xmi" xmi:id="Security_1" useLocalSecurityServer="true" useDomainQualifiedUserNames="false" enabled="false" cacheTimeout="600" issuePermissionWarning="true" activeProtocol="BOTH" enforceJava2Security="false" enforceFineGrainedJCASecurity="false" appEnabled="false" dynamicallyUpdateSSLConfig="true" activeAuthMechanism="LTPA_1" activeUserRegistry="WIMUserRegistry_1" defaultSSLSettings="SSLConfig_CNIAPP01Node02_1">

主要注意这里的ENABLED的设置!由原来的TRUE修改为FALSE;

你可能感兴趣的:(java,eclipse,IBM,SOAP,websphere)