WSAdmin错误创建SOAP连接

时间:2014-09-30 21:44:19

标签: web-services soap websphere wsadmin

当我运行以下命令时,它会因为错误而失败。

wsadmin.bat -wsadmin_classpath D:\MediaRepository\Install_Driver\Lib;D:\MediaRepository\Install_Driver\Lib\PasswordEncryption.jar \ 
 -javaoption -Xms1024m -javaoption -Xmx1024m -host 165.226.111.111 -port 18120 \ 
 -user XXX -password XXX
  

WASX7023E:创建与主机“165.226.165.136”的“SOAP”连接时出错;异常信息:com.ibm.websphere.management.exception.ConnectorNotAvailableException:[SOAPException:faultCode = SOAP-ENV:Client; msg =无法为主机165.226.111.111找到有效的IP]   WASX7213I:此脚本客户端未连接到服务器进程;有关其他信息,请参阅日志文件D:\ WAS \ V70 \ AppServer \ profiles \ logs \ wsadmin.traceout。   WASX8011W:AdminTask对象不可用。

的wsadmin.traceout

************ Start Display Current Environment ************
Host Operating System is Windows Server 2008 R2, version 6.1 build 7601 Service Pack 1
Java version = JRE 1.6.0 IBM J9 2.4 Windows Server 2008 R2 amd64-64 jvmwa6460sr15-20131016_170922 (JIT enabled, AOT enabled)
J9VM - 20131016_170922
JIT  - r9_20130920_46510ifx2
GC   - GA24_Java6_SR15_20131016_1337_B170922, Java Compiler = j9jit24, Java VM name = IBM J9 VM
was.install.root = D:\WAS\V70\AppServer
user.install.root = D:\WAS\V70\AppServer\profiles\SF_N9SF_LTST
Java Home = D:\WAS\V70\AppServer\java\jre
ws.ext.dirs = D:\\WAS\\V70\\AppServer\\java\\lib;D:\\WAS\\V70\\AppServer\\classes;D:\\WAS\\V70\\AppServer\\lib;D:\\WAS\\V70\\AppServer\\installedChannels;D:\\WAS\\V70\\AppServer\\lib\\ext;D:\\WAS\\V70\\AppServer\\web\\help;D:\\WAS\\V70\\AppServer\\deploytool\\itp\\plugins\\com.ibm.etools.ejbdeploy\\runtime
Classpath = D:\WAS\V70\AppServer\profiles\properties;D:\WAS\V70\AppServer\properties;D:\WAS\V70\AppServer\lib\startup.jar;D:\WAS\V70\AppServer\lib\bootstrap.jar;D:\WAS\V70\AppServer/lib/lmproxy.jar;D:\WAS\V70\AppServer/lib/urlprotocols.jar;D:\WAS\V70\AppServer\java\lib\tools.jar;D:\WAS\V70\AppServer\deploytool\itp\batchboot.jar;D:\WAS\V70\AppServer\deploytool\itp\batch2.jar
Java Library path = D:\WAS\V70\AppServer\java\jre\bin\default;D:\WAS\V70\AppServer\java\jre\bin;C:\Windows\system32;C:\Windows;D:\Program Files\Siemens\GsmActive\DLL;C:\CA\SC\CAWIN\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\CA\SC\Csam\SockAdapter\bin;C:\CA\DSM\bin;C:\CA\SC\CBB\;C:\CA\SC\CAM\bin;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Groovy\Groovy-2.2.2\bin;C:\Program Files\Microsoft Network Monitor 3\;.
Current trace specification = *=info
************* End Display Current Environment *************
[9/29/14 18:00:53:512 EDT] 00000000 ManagerAdmin  I   TRAS0017I: The startup trace state is *=info.
[9/29/14 18:00:53:784 EDT] 00000000 AbstractShell A   WASX7326I: Loaded properties file "/D:/WAS/V70/AppServer/profiles/properties/wsadmin.properties"
[9/29/14 18:00:53:926 EDT] 00000000 SSLConfig     W   CWPKI0041W: One or more key stores are using the default password.
[9/29/14 18:00:53:933 EDT] 00000000 SSLConfigMana I   CWPKI0027I: Disabling default hostname verification for HTTPS URL connections.
[9/29/14 18:00:53:940 EDT] 00000000 SecurityObjec I   Client code attempting to load security configuration
[9/29/14 21:40:56:313 EDT] 00000000 AbstractShell A   WASX7093I: Issuing message: "WASX7023E: Error creating "SOAP" connection to host "XXX"; exception information: com.ibm.websphere.management.exception.ConnectorNotAvailableException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.io.IOException: Exception during sslSocket.startHandshake: Read timed out; targetException=java.lang.IllegalArgumentException: Error opening socket: java.io.IOException: Exception during sslSocket.startHandshake: Read timed out]"
[9/29/14 21:40:56:316 EDT] 00000000 AbstractShell E   WASX7120E: Diagnostic information from exception with text "com.ibm.websphere.management.exception.ConnectorException
java.lang.reflect.InvocationTargetException: java.lang.reflect.InvocationTargetException
" follows:

 com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host XXX at port 10004.
    at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:635)
    at com.ibm.websphere.management.AdminClientFactory.access$000(AdminClientFactory.java:127)
    at com.ibm.websphere.management.AdminClientFactory$1.run(AdminClientFactory.java:210)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
    at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:206)
    at com.ibm.ws.scripting.CommonScriptingObject.connectToAdminService(CommonScriptingObject.java:123)
    at com.ibm.ws.scripting.CommonScriptingObject.<init>(CommonScriptingObject.java:104)
    at com.ibm.ws.scripting.AdminControlClient.<init>(AdminControlClient.java:170)
    at com.ibm.ws.scripting.AbstractShell.createControlClient(AbstractShell.java:1268)
    at com.ibm.ws.scripting.AbstractShell.run(AbstractShell.java:2212)
    at com.ibm.ws.scripting.WasxShell.main(WasxShell.java:1010)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    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:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    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:341)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:111)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:527)
    at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:457)
    ... 31 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.io.IOException: Exception during sslSocket.startHandshake: Read timed out; targetException=java.lang.IllegalArgumentException: Error opening socket: java.io.IOException: Exception during sslSocket.startHandshake: Read timed out]
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:415)
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPConnectorClient.java:227)
    ... 36 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.io.IOException: Exception during sslSocket.startHandshake: Read timed out; targetException=java.lang.IllegalArgumentException: Error opening socket: java.io.IOException: Exception during sslSocket.startHandshake: Read timed out]
    at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:475)
    at org.apache.soap.rpc.Call.WASinvoke(Call.java:487)
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient$4.run(SOAPConnectorClient.java:387)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:372)
    ... 37 more

[9/29/14 21:40:56:317 EDT] 00000000 AdminControlC W   WASX7072E: The control service is not available.
[9/29/14 21:40:56:336 EDT] 00000000 AdminConfigCl W   WASX7198W: The configuration service is not running. Configuration commands will not run.
[9/29/14 21:40:56:353 EDT] 00000000 AdminConfigCl A   WASX7208I: Validation settings in effect now: Level=HIGHEST, Cross-validation=true, Output file=D:/WAS/V70/AppServer/profiles/logs/wsadmin.valout
[9/29/14 21:40:56:371 EDT] 00000000 AdminAppClien W   WASX7072E: The control service is not available.
[9/29/14 21:40:56:766 EDT] 00000000 AdminAppClien W   WASX7206W: The application management service is not running. Application management commands will not run.
[9/29/14 21:40:56:768 EDT] 00000000 AdminCmdClien W   WASX7198W: The configuration service is not running. Configuration commands will not run.
[9/29/14 21:40:56:768 EDT] 00000000 AdminCmdClien W   WASX8011W: AdminTask object is not available.

1 个答案:

答案 0 :(得分:1)

如果登录到WebSphere控制台,然后导航到“服务器”>“服务器类型”>“ WebSphere应用程序服务器”,则应该看到您的主机名不是localhost:

enter image description here

您至少有三种选择来解决此问题...

选项1

使用主机和端口参数启动wsadmin:

wsadmin.bat -lang jython -username [username] -password [password] -host [hostname shown in image 1] -port [your WAS console port]

请注意,此选项可能导致以下错误:

  

SRVE0255E:处理NNN.NNN.NNN.NNN:NNNN的WebGroup /虚拟主机具有   尚未定义。

...超出了此答案的范围,但可以通过使用一些谷歌搜索来解决。

选项2

在conntype参数设置为NONE的情况下启动wsadmin。

wsadmin.bat -lang jython -username [username] -password [password] -conntype NONE 

您可能无法使用wsadmin来完成所需做的所有事情(例如,如果必须对服务器节点执行工作),但是它将允许您执行某些功能,例如更改主机名(选项3)。

选项3

将主机名更改为127.0.0.1。使用选项2,使用NONE的 conntype 连接并更改服务器的主机名。有关如何执行此操作的步骤,请参阅本指南http://java.boot.by/ibm-317/apas02.html。更改主机名后,请重新启动WebSphere,然后您应该能够在没有 conntype host / port 参数的情况下连接到wsadmin。请注意,这些命令必须直接在要更改的服务器上运行,因此请确保从正确的概要文件文件夹(不是WebSphere \ AppServer \ bin)启动wsadmin:

cd c:\IBM\WebSphere\AppServer\profiles\ODMSample8810\bin\
wsadmin.bat -lang jython -username [username] -password [password] -conntype NONE

wsadmin>myserver = AdminConfig.list('ServerIndex')
wsadmin>AdminConfig.modify(myserver,  "[[hostName 127.0.0.1]]")
wsadmin>AdminConfig.show(myserver,  'hostName')
wsadmin>AdminConfig.save()
相关问题