Bootstrap FreeKB - IBM WebSphere - Resolve "Error creating SOAP connection to host"
IBM WebSphere - Resolve "Error creating SOAP connection to host"

Updated:   |  IBM WebSphere articles

This error often appears when using wsadmin.

~]# /opt/WebSphere/AppServer/profiles/profile1/bin/wsadmin.sh

WASX7023E: Error creating "SOAP" connection to host "localhost"; exception information: com.ibm.websphere.management.exception.ConnectorNotAvailableException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Unable to find a valid IP for host localhost]

 

Notice in this example that profile profile1 is being used.

Assuming profile1 is up and running, the SOAP hostname and port for profile1 will be listed in profile1 serverindex.xml file, which is located at ${WAS_INSTALL_ROOT}/profiles/profile1/config/cells/<cell name>/nodes/<node name>/serverindex.xml. In this example, the hostname for profile1 is server1.example.com and the SOAP port is 12345.

<specialEndpoints xmi:id="NamedEndPoint_123456789" endPointName="SOAP_CONNECTOR_ADDRESS">
  <endPoint xmi:id="EndPoint_123456789" host="server1.example.com" port="12345"/>
</speicalEndpoints>

 

Ensure the ${WAS_INSTALL_ROOT}/profiles/profile1/properties/wsadmin.properties file for profile1 has the SOAP hostname and port listed in the serverindex.xml file.

com.ibm.ws.scripting.connectionType=SOAP
com.ibm.ws.scripting.port=12345
com.ibm.ws.scripting.host=server1.example.com

 

Now try to reissue the wsdamin.sh command and if all goes well, hopefully you will no longer get the "Error creating SOAP connection to host" error.

~]# /opt/IBM/WebSphere/AppServer/profiles/profile1/bin/wsadmin.sh

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter e874b1 in the box below so that we can be sure you are a human.