HCL Commerce Developer

Cannot access localhost service after installation

After you install HCL Commerce Developer and start the servers, you try to access the storefront or search services but you notice that localhost cannot connect or localhost refused.

Problem/Solution

Here are some ways to troubleshoot this issue.
  • Ping localhost to ensure that you get a response. If localhost cannot resolve to a valid IP or resolve to an IPv6 address, add the following mapping to the C:\Windows\System32\Drivers\etc\hosts file.
    127.0.0.1 localhost
  • Check that you are using IBM Java 8.
    1. Open a command line utility and enter java -version. You should get an output similar to the following message with java version "1.8.x.y.z"
      java version "1.8.0_151"
      Java(TM) SE Runtime Environment (build 8.0.5.5 - pwa6480sr5fp5-20171114_01(SR5 FP5))
      IBM J9 VM (build 2.9, JRE 1.8.0 Windows 10 amd64-64 Compressed References 20171102_369060 (JIT enabled, AOT enabled)
      OpenJ9   - 7ade437
      OMR      - 1b656cb
      IBM      - 59c3d96)
      JCL - 20171113_01 based on Oracle jdk8u151-b12
    2. If you do not get a similar output with version 1.8.x.y.z, then verify that you set environment variables properly.
      • Ensure that JAVA_HOME points to the IBM SDK Java 8. For example, C:\IBM\WebSphere\AppServer\java\8.0
      • Ensure that PATH includes %JAVA_HOME%\bin.
    3. If that still does not fix the issue, reinstall WebSphere Application Server, Liberty, and IBM Java 8. Ensure that you download and install the correct versions of WebSphere Application Server Liberty and IBM Java 8. Review the instructions closely and only download and install the parts that are mentioned in the topic, Installing WebSphere Application Server and IBM Java SDK 8.