WebSphere Commerce 7 | REST calling BOD framework | Calls not reaching the WCS Server | Port 80 Issue


I have implemented REST Service, which calls BOD framework to fetch the data from WebSphere Commerce Database. When I tried to call this from the URI, we noticed that the call is not at all reaching the WebSphere Commerce server.

When we tried to debug the issue, it has been noticed the following messages in the logs,
TCP Channel TCP_2 initialization failed.  The socket bind failed for host * and port 80.  The port may already be in use.

Got the culprit :)

Port 80 is using by some application in my laptop and we have followed these steps to fix the issue,

  • Open the command prompt and run NETSTAT command
         netstat -ao 

    Here is the output for the same,
    Proto  Local Address   Foreign Address  State        PID   

     TCP    0.0.0.0:80        BCY4:0       LISTENING       4


  • Now, we have tried to find out, which resource/application is using this port 80
    • Go to Windows Task Manager --> View --> Select Columns --> Opted PID (Process Identifier)

    • Sort with PID and noticed, this PID 4 is getting used by IIS Server (http) 


  •  Stopped the http with the following command,
       net stop http 
  • Restart your WebSphere Commerce server and try to check which resource/application is using port 80,


 

Issue has been fixed and you can notice this kind of issues, if your machine has Skype, Connectify Me, HTTP Server installations. Make sure that, these applications doesn't use Port 80.

Thanks Aniket Sharma and Shashi Kumar for your ideas in resolving this socket bind failed exception.

My Writings........

HCL Commerce v9.1 | Local Store Vs Remote Store

  Local Store Remote Store Project Type Migrated (Lift & Shift) - Newly Imp...