Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21641

The system cannot create a SOAP connector to connect to remote host using websphere deployer plugin

      We are trying to deploy a java j2ee EAR to WebSphere application server(v8.0.0) hosted on a remote host
      ->We had copied the required jars(com.ibm.ws.admin.client_8.0.0.jar, com.ibm.ws.orb_8.0.0.jar) from that remote host to our Build server where jenkins is hosted.
      ->We had copied the DummyClientKeyFile.jks, DummyClientTrustFile.jks to Build server and given their path in the Job config.
      ->When tried to Test Connection, we are getting the following error,

      Connection failed: com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host <remotehostIP> at port 8879.
      at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:634)
      at com.ibm.websphere.management.AdminClientFactory.access$000(AdminClientFactory.java:126)
      ........

      See the attachment for full error

          [JENKINS-21641] The system cannot create a SOAP connector to connect to remote host using websphere deployer plugin

          Vamsi Hari created issue -
          Vamsi Hari made changes -
          Summary Original: unable to connect to remote host using websphere deployer plugin New: The system cannot create a SOAP connector to connect to remote host using websphere deployer plugin
          Vamsi Hari made changes -
          Description Original: {color:green}*We are trying to deploy a java j2ee EAR to WebSphere application server(v8.0.0) hosted on a remote host*{color}
          *->We had copied the required jars(com.ibm.ws.admin.client_8.0.0.jar, com.ibm.ws.orb_8.0.0.jar) from that remote host to our Build server where jenkins is hosted.*
          *->We had copied the DummyClientKeyFile.jks, DummyClientTrustFile.jks to Build server and given their path in the Job config.*
          ->When tried to Test Connection, we are getting the following error,

          Connection failed: com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host 10.25.4.189 at port 8879.
          at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:634)
          at com.ibm.websphere.management.AdminClientFactory.access$000(AdminClientFactory.java:126)
          ........

          {color:red} See the attachment for full error {color}
          New: {color:green}*We are trying to deploy a java j2ee EAR to WebSphere application server(v8.0.0) hosted on a remote host*{color}
          *->We had copied the required jars(com.ibm.ws.admin.client_8.0.0.jar, com.ibm.ws.orb_8.0.0.jar) from that remote host to our Build server where jenkins is hosted.*
          *->We had copied the DummyClientKeyFile.jks, DummyClientTrustFile.jks to Build server and given their path in the Job config.*
          ->When tried to Test Connection, we are getting the following error,

          Connection failed: com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host <remotehostIP> at port 8879.
          at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:634)
          at com.ibm.websphere.management.AdminClientFactory.access$000(AdminClientFactory.java:126)
          ........

          {color:red} See the attachment for full error {color}
          Greg Peters made changes -
          Assignee New: Greg Peters [ gpeters ]

          Greg Peters added a comment -

          PKIX path building failed: means you haven't imported your SSL cert from the administration console to your local jenkins server. See instructions for details.

          Greg Peters added a comment - PKIX path building failed: means you haven't imported your SSL cert from the administration console to your local jenkins server. See instructions for details.
          Greg Peters made changes -
          Fix Version/s New: current [ 10162 ]
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Vamsi Hari added a comment -

          Greg, thanks a lot for your quick response,
          Let me explain what process we followed,
          Say our build server as B and deployment server as D, which are on different hosts.
          1)had copied the required jars(com.ibm.ws.admin.client_8.0.0.jar, com.ibm.ws.orb_8.0.0.jar) from D server to B server into the location specified as in the plugin doc.
          2)had copied the DummyClientKeyFile.jks, DummyClientTrustFile.jks from D server to B server to certain location and given that path in the Job config.
          3)had imported DummyClientTrustFile.jks to Java_home/jre/lib/security/cacerts.jks
          4)had imported the websphere admin console url certificate of D server to Java_home/jre/lib/security/cacerts.jks in B server(suggested by you).

          But Still the problem persists,
          appreciate your help,

          thanks,
          Vamsi

          Vamsi Hari added a comment - Greg, thanks a lot for your quick response, Let me explain what process we followed, Say our build server as B and deployment server as D, which are on different hosts. 1)had copied the required jars( com.ibm.ws.admin.client_8.0.0.jar, com.ibm.ws.orb_8.0.0.jar ) from D server to B server into the location specified as in the plugin doc. 2)had copied the DummyClientKeyFile.jks, DummyClientTrustFile.jks from D server to B server to certain location and given that path in the Job config. 3)had imported DummyClientTrustFile.jks to Java_home/jre/lib/security/cacerts.jks 4)had imported the websphere admin console url certificate of D server to Java_home/jre/lib/security/cacerts.jks in B server(suggested by you). But Still the problem persists, appreciate your help, thanks, Vamsi

          Greg Peters added a comment - - edited

          Vamsi,

          Open up your browser and point to your WebSphere Administration Console via https. Export the certificate using Google Chrome or some other browser. Import this certificate into the /jre/lib/security/cacerts file as well. You must also make sure the "cacerts" file is in the correct JRE that Jenkins is using. Also, you're comments say your using "cacerts.jks" which is not the same as "cacerts". You can also try the InstallCert.java option which is defined in the "WebSphere Liberty" documentation. Let me know if this works.

          Greg Peters added a comment - - edited Vamsi, Open up your browser and point to your WebSphere Administration Console via https. Export the certificate using Google Chrome or some other browser. Import this certificate into the /jre/lib/security/cacerts file as well. You must also make sure the "cacerts" file is in the correct JRE that Jenkins is using. Also, you're comments say your using "cacerts.jks" which is not the same as "cacerts". You can also try the InstallCert.java option which is defined in the "WebSphere Liberty" documentation. Let me know if this works.

          Vamsi Hari added a comment -

          Greg,
          What you said is correct, i had imported to cacerts.jks(custom one created).
          Now,
          1)i had correctly imported DummyClientTrustFile.jks to Java_home/jre/lib/security/cacerts
          2)downloaded the installcert compiled it and run, and copied the generated jssecacerts file to cacerts location
          java InstallCert <D server hostname>:9043

          But here, let me clarify you that i am using IBM WebSphere Application Server config, It may be out of context but could you please rectify once on what basis should we choose between liberty profile or Application Server

          Vamsi Hari added a comment - Greg, What you said is correct, i had imported to cacerts.jks(custom one created). Now, 1)i had correctly imported DummyClientTrustFile.jks to Java_home/jre/lib/security/cacerts 2)downloaded the installcert compiled it and run, and copied the generated jssecacerts file to cacerts location java InstallCert <D server hostname>:9043 But here, let me clarify you that i am using IBM WebSphere Application Server config, It may be out of context but could you please rectify once on what basis should we choose between liberty profile or Application Server

          Vamsi Hari added a comment -

          Greg,
          Sorry haven't mentioned, still it is not working

          Vamsi Hari added a comment - Greg, Sorry haven't mentioned, still it is not working

            gpeters Greg Peters
            hvamsik Vamsi Hari
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: