7 Replies Latest reply: Aug 8, 2012 1:56 PM by 947021 RSS

    OHS not able to redirect to two different ports of the same managed server

    928140
      Hi

      I need to redirect to different ports of the same managed server (say M1, M2) based on the availability of the managed server. ie when managed server M1 is busy handling other requests i need to redirect my new request to M2. i already have this mechanism to find out which managed server is free.
      so now the problem is if M2 is free how would i tell ohs to redirect it to M2 server??

      M1,M2 both managed servers are hosted at host1.example.com.
      M1 port - 8001
      M2 port - 8003

      my context root is /YpsSupplyPlanningEngineService/supplyPlanningEngineService

      my mod_wl_ohs.conf is defined as:

      <Location /M1/YpsSupplyPlanningEngineService/supplyPlanningEngineService>
      SetHandler weblogic-handler
      PathTrim /M1
      WebLogicHost host1.example.com
      WebLogicPort 8001
      </Location>

      <Location /M2/YpsSupplyPlanningEngineService/supplyPlanningEngineService>
      SetHandler weblogic-handler
      PathTrim /M2
      WebLogicHost host1.example.com
      WebLogicPort 8003
      </Location>

      when i type the url in browser as "http://<ohs_server_url>:7777/M2/YpsSupplyPlanningEngineService/supplyPlanningEngineService"

      This is not working. Is there any way to do it?
      Please help me here.

      Thanks in advance.

      Edited by: 925137 on Jul 5, 2012 2:03 AM
        • 1. Re: OHS not able to redirect to two different ports of the same managed server
          928140
          i am able to access the webservies defined in both the managed servers (M1 port 8001 and M2 port 8003)
          when the url passed is

          "http://host1.example.com:8001/YpsSupplyPlanningEngineService/supplyPlanningEngineService"

          or

          "http://host1.example.com:8003/YpsSupplyPlanningEngineService/supplyPlanningEngineService"

          Edited by: 925137 on Jul 5, 2012 2:10 AM

          Edited by: 925137 on Jul 5, 2012 2:11 AM
          • 2. Re: OHS not able to redirect to two different ports of the same managed server
            947021
            Just change the PathTrim to "M1" instead of "/M1" and same change for M2 as well.
            I believe that the issue is due to the final URL string that gets generated because of the PathTrim attribute.

            If the above change of removing / from PathTrim does not work, then please set "Debug" to "ALL" and "WLLogFile" to a full log path.
            Looking at the Debug ALL logging, we can easily determine the final string that is generated and can identify the root cause of the issue.


            Regards,
            Anon
            • 3. Re: OHS not able to redirect to two different ports of the same managed server
              928140
              Hi Anon

              thanks for replying..

              Chnage from /M1 to M1 didnt work.
              then I set debug ALL and set WLLogFile to full path

              the log i received when i queried for request is:


              *******************************************************************************************
              *******************************************************************************************
              2012-07-05T17:04:18.5774+05:30 ================New Request: [GET /M1/YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL HTTP/1.1] =================
              2012-07-05T17:04:18.5774+05:30 Using Uri /M1/YpsSupplyPlanningEngineService/supplyPlanningEngineService
              2012-07-05T17:04:18.5774+05:30 After trimming path: '/YpsSupplyPlanningEngineService/supplyPlanningEngineService'
              *2012-07-05T17:04:18.5774+05:30 The final request string is '/YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL'*
              2012-07-05T17:04:18.5774+05:30 SEARCHING id=[host1.example.com:8001] from current ID=[host1.example.com.com:8001]
              2012-07-05T17:04:18.5775+05:30 The two ids matched
              2012-07-05T17:04:18.5775+05:30 @@@FOUND...id=[host1.example.com.com:8001], server_name=[host1.example.com.com], server_port=[7777]
              2012-07-05T17:04:18.5775+05:30 attempt #0 out of a max of 5
              2012-07-05T17:04:18.5775+05:30 keepAlive = 1, canRecycle = 1
              2012-07-05T17:04:18.5775+05:30 Trying a pooled connection for 'xxx.xxx.xxx.xxx/8001/8001'
              2012-07-05T17:04:18.5775+05:30 getPooledConn: found a host and port/securePort match
              2012-07-05T17:04:18.5775+05:30 getPooledConn: No more connections in the pool for Host[xxx.xxx.xxx.xxx] Port[8001] SecurePort[8001]
              2012-07-05T17:04:18.5775+05:30 general list: trying connect to 'xxx.xxx.xxx.xxx'/8001/8001 at line 2372 for '/YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL'
              2012-07-05T17:04:18.5776+05:30 URL::Connect: Connected successfully
              2012-07-05T17:04:18.5776+05:30 SSL is not configured for this connection
              2012-07-05T17:04:18.5776+05:30 Local Port of the socket is 7812
              2012-07-05T17:04:18.5776+05:30 Remote Host xxx.xxx.xxx.xxx Remote Port 7812
              2012-07-05T17:04:18.5776+05:30 general list: created a new connection to 'xxx.xxx.xxx.xxx'/8001 for '/YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL', Local port:7812
              2012-07-05T17:04:18.5776+05:30 Entering method BaseProxy::sendRequest
              2012-07-05T17:04:18.5776+05:30 Entering method BaseProxy::parse_headers
              2012-07-05T17:04:18.5776+05:30 No of headers =5
              2012-07-05T17:04:18.5776+05:30 Header from client:[User-Agent]=[Java/1.6.0_11]
              2012-07-05T17:04:18.5776+05:30 Header from client:[Host]=[host1.example.com:7777]
              2012-07-05T17:04:18.5776+05:30 Header from client:[Accept]=[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2]
              2012-07-05T17:04:18.5776+05:30 Header from client:[Connection]=[keep-alive]
              2012-07-05T17:04:18.5776+05:30 Header from client:[ECID-Context]=[1.004l1E7Cv6mESOGLMy^Aye0007Kd00000E;kXjE1ZDLIPHUjDHCj9KSnJLTkGSRtGKRXUQRdURP5URPdUPPJLQSqPRO_VBSpGSSgPSKgHQRiPQRbLIRbPQR_JLPmMTQZLO]
              2012-07-05T17:04:18.5776+05:30 Exiting method BaseProxy::parse_headers
              2012-07-05T17:04:18.5776+05:30 parse_client_headers is done
              2012-07-05T17:04:18.5776+05:30 Method is GET
              2012-07-05T17:04:18.5777+05:30 URL::sendHeaders(): meth='GET' file='/YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL' protocol='HTTP/1.1'
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [User-Agent]=[Java/1.6.0_11]
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [Host]=[host1.example.com:7777]
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [Accept]=[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2]
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [ECID-Context]=[1.004l1E7Cv6mESOGLMy^Aye0007Kd00000E;kXjE1ZDLIPHUjDHCj9KSnJLTkGSRtGKRXUQRdURP5URPdUPPJLQSqPRO_VBSpGSSgPSKgHQRiPQRbLIRbPQR_JLPmMTQZLO]
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [Connection]=[Keep-Alive]
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [WL-Proxy-SSL]=[false]
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [X-Forwarded-For]=[xxx.xxx.xxx.xxx]
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [WL-PATH-TRIM]=[M1]
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [WL-Proxy-Client-IP]=[xxx.xxx.xxx.xxx]
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [Proxy-Client-IP]=[xxx.xxx.xxx.xxx]
              2012-07-05T17:04:18.5777+05:30 Header to WLS: [X-WebLogic-KeepAliveSecs]=[30]
              2012-07-05T17:04:18.5779+05:30 About to call parseHeaders
              2012-07-05T17:04:18.5779+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6366+05:30 Reader::fill(): sysRecv returned 1271
              2012-07-05T17:04:18.6366+05:30 URL::parseHeaders: CompleteStatusLine set to [HTTP/1.1 200 OK]
              2012-07-05T17:04:18.6366+05:30 URL::parseHeaders: StatusLine set to [200 OK]
              2012-07-05T17:04:18.6366+05:30 URL::parseHeaders: StatusLineWithoutStatusCode set to [OK]
              2012-07-05T17:04:18.6366+05:30 Header from WLS:[Date]=[Thu, 05 Jul 2012 11:34:18 GMT]
              2012-07-05T17:04:18.6367+05:30 Header from WLS:[Transfer-Encoding]=[chunked]
              2012-07-05T17:04:18.6367+05:30 Header from WLS:[Content-Type]=[text/xml]
              2012-07-05T17:04:18.6367+05:30 Header from WLS:[X-Powered-By]=[Servlet/2.5 JSP/2.1]
              2012-07-05T17:04:18.6367+05:30 parsed all headers OK
              2012-07-05T17:04:18.6367+05:30 Exiting method BaseProxy::sendRequest
              2012-07-05T17:04:18.6367+05:30 sendResponse() : r->status = '200'
              2012-07-05T17:04:18.6367+05:30 Hdrs to client (add):[Date]=[Thu, 05 Jul 2012 11:34:18 GMT]
              2012-07-05T17:04:18.6367+05:30 Hdrs to client (add):[X-Powered-By]=[Servlet/2.5 JSP/2.1]
              2012-07-05T17:04:18.6367+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6373+05:30 Reader::fill(): sysRecv returned 4096
              2012-07-05T17:04:18.6374+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6374+05:30 Reader::fill(): sysRecv returned 4096
              2012-07-05T17:04:18.6374+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6374+05:30 Reader::fill(): sysRecv returned 4048
              2012-07-05T17:04:18.6374+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6377+05:30 Reader::fill(): sysRecv returned 4096
              2012-07-05T17:04:18.6377+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6377+05:30 Reader::fill(): sysRecv returned 4096
              2012-07-05T17:04:18.6377+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6377+05:30 Reader::fill(): sysRecv returned 4048
              2012-07-05T17:04:18.6377+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6381+05:30 Reader::fill(): sysRecv returned 4096
              2012-07-05T17:04:18.6381+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6381+05:30 Reader::fill(): sysRecv returned 4096
              2012-07-05T17:04:18.6382+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6382+05:30 Reader::fill(): sysRecv returned 4096
              2012-07-05T17:04:18.6382+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6382+05:30 Reader::fill(): sysRecv returned 1340
              2012-07-05T17:04:18.6382+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6382+05:30 Reader::fill(): sysRecv returned 385
              2012-07-05T17:04:18.6382+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6382+05:30 Reader::fill(): sysRecv returned 331
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): sysRecv returned 305
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): sysRecv returned 255
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): sysRecv returned 225
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): sysRecv returned 179
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): sysRecv returned 152
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): sysRecv returned 307
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): sysRecv returned 103
              2012-07-05T17:04:18.6383+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): sysRecv returned 393
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): sysRecv returned 179
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): sysRecv returned 152
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): sysRecv returned 311
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): sysRecv returned 255
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): sysRecv returned 223
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): sysRecv returned 179
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6384+05:30 Reader::fill(): sysRecv returned 152
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): sysRecv returned 309
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): sysRecv returned 103
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): sysRecv returned 393
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): sysRecv returned 179
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): sysRecv returned 152
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): sysRecv returned 319
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6385+05:30 Reader::fill(): sysRecv returned 255
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): sysRecv returned 327
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): sysRecv returned 103
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): sysRecv returned 377
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): sysRecv returned 179
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): sysRecv returned 152
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): sysRecv returned 305
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): sysRecv returned 103
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6386+05:30 Reader::fill(): sysRecv returned 152
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): sysRecv returned 309
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): sysRecv returned 103
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): sysRecv returned 379
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): sysRecv returned 179
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): sysRecv returned 152
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): sysRecv returned 311
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): sysRecv returned 103
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6387+05:30 Reader::fill(): sysRecv returned 152
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): sysRecv returned 315
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): sysRecv returned 103
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): sysRecv returned 381
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): sysRecv returned 179
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): sysRecv returned 152
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): sysRecv returned 327
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6388+05:30 Reader::fill(): sysRecv returned 317
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): sysRecv returned 237
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): sysRecv returned 319
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): sysRecv returned 311
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): sysRecv returned 251
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): sysRecv returned 319
              2012-07-05T17:04:18.6389+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): sysRecv returned 233
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): sysRecv returned 325
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): sysRecv returned 261
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): sysRecv returned 315
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): sysRecv returned 239
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6390+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): sysRecv returned 325
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): sysRecv returned 235
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): sysRecv returned 323
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): sysRecv returned 243
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): sysRecv returned 321
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6391+05:30 Reader::fill(): sysRecv returned 321
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): sysRecv returned 239
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): sysRecv returned 329
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): sysRecv returned 329
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): sysRecv returned 103
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): sysRecv returned 415
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6392+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): sysRecv returned 286
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): sysRecv returned 231
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): sysRecv returned 267
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): sysRecv returned 333
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): sysRecv returned 253
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): sysRecv returned 335
              2012-07-05T17:04:18.6393+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): sysRecv returned 251
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): sysRecv returned 343
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): sysRecv returned 259
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): sysRecv returned 325
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): sysRecv returned 341
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6394+05:30 Reader::fill(): sysRecv returned 353
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): sysRecv returned 255
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): sysRecv returned 331
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): sysRecv returned 265
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): sysRecv returned 327
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): sysRecv returned 263
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6395+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): sysRecv returned 335
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): sysRecv returned 261
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): sysRecv returned 337
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): sysRecv returned 255
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): sysRecv returned 345
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): sysRecv returned 279
              2012-07-05T17:04:18.6396+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6397+05:30 Reader::fill(): sysRecv returned 76
              2012-07-05T17:04:18.6397+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6397+05:30 Reader::fill(): sysRecv returned 386
              2012-07-05T17:04:18.6397+05:30 Reader::fill(): first=0 last=0 toRead=4096
              2012-07-05T17:04:18.6397+05:30 Reader::fill(): sysRecv returned 77
              2012-07-05T17:04:18.6397+05:30 calling closeConn() with non-null URL* at 633
              2012-07-05T17:04:18.6398+05:30 canRecycle: conn=1 status=200 isKA=1 clen=-1 isCTE=1
              2012-07-05T17:04:18.6398+05:30 closeConn: pooling for 'xxx.xxx.xxx.xxx/8001'
              2012-07-05T17:04:18.6398+05:30 closeConn: pooling '0'
              2012-07-05T17:04:18.6398+05:30 request [YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL] processed successfully..................
              2012-07-05T17:04:18.7859+05:30 BEFORE acquire_lock
              2012-07-05T17:04:18.7860+05:30 AFTER acquire_lock
              2012-07-05T17:04:18.7860+05:30 List size is 1
              2012-07-05T17:04:18.7860+05:30 Cleaning up the list node 'host1.example.com.com:8001'list Length '1'
              2012-07-05T17:04:18.7860+05:30 stale connections: KA = 20, delta = 0
              *********************************************************************************************************************
              *********************************************************************************************************************

              The final request string generated is correct.. but still this fails in my java code (where i send request).
              it gives me an error saying:

              *********************************************************************************************************************
              Error: java.io.FileNotFoundException: http://host1.example.com.com:7777/YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL=/META-INF/wsdl/ServiceException.wsdl
              javax.xml.ws.WebServiceException: java.io.FileNotFoundException: http://host1.example.com.com:7777/YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL=/META-INF/wsdl/ServiceException.wsdl
              *********************************************************************************************************************

              Edited by: 925137 on Jul 5, 2012 4:42 AM
              • 4. Re: OHS not able to redirect to two different ports of the same managed server
                947021
                We can not use WebServer for WebService (WSDL) requests to be forwarded.
                The WebLogic plugin for WebServers do not support WebService request forwarding.
                My be it is because WebServers (Apache/IIS/SunOne) do not understand SOAP response.

                That is the reason it is failing while forwarding the response from WLS to the java client.


                Another Opinion:
                - The two primary purposes of using a WebServer is to perform failover and load-balancing.
                - With your current configuration (WebLogicHost and WebLogicPort) you are anyways not performing failover or load-balancing as only one server is configured.
                - Since you are anyways identifying the end-point (backend server) before sending the request to WebServer can you not directly access the WebLogic Server.
                - Unless you do not have access to the backend servers (WebLogic Server M1 and M2), I do not think you need a WebServer.
                - Now, if it is about your java client not having access to WebLogic Servers OR you want to hide the WebLogic IP Address, then you should be looking at using a hardware OR software load-balancer to achieve your requirement instead of WebServer.


                Regards,
                Anon
                • 5. Re: OHS not able to redirect to two different ports of the same managed server
                  928140
                  Hi Anon

                  Thanks for replying.

                  Actually I am using OHS just as a look-up table instead using a database.
                  And this redirecting to a managed server from java test client via OHS was working in different product and OHS redirects it successfully and I am able to see the logs in managed server for that product.

                  That is the reason i am trying to do it in my new product 'YpsSupplyPlanningEngineService' and trying to access managed server port from OHS where i am failing to do so.
                  When i compared both the access logs of both OHS servers. i found a notable difference but couldn't understand what it meant. I also found the same difference in WLLogFile log when i set debug to ALL.

                  OHS access.log for the failing one:
                  10.176.68.139 - - [04/Jul/2012:16:36:49 +0530] "GET /M1/YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL HTTP/1.1" 200 63442
                  10.176.68.139 - - [04/Jul/2012:16:36:50 +0530] "GET /YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL=/META-INF/wsdl/ServiceException.wsdl HTTP/1.1" 404 241

                  OHS access.log for the working old product:
                  10.232.8.252 - - [04/Jul/2012:11:56:33 +0000] "GET /M1/rp/RapidPlanningService?WSDL HTTP/1.1" 200 29396
                  10.232.8.252 - - [04/Jul/2012:11:56:34 +0000] "GET /M1/rp/RapidPlanningService?WSDL HTTP/1.1" 200 29396
                  10.232.8.252 - - [04/Jul/2012:11:56:34 +0000] "POST /M1/rp/RapidPlanningService HTTP/1.1" 202 -

                  This log is the only difference when compared everything between the two.
                  even the java test client code is also same.

                  Thanks in advance for your great help.
                  Is there any way if i could get in touch with you to explain the issue more elaborately.

                  Thanks
                  Santosh Vamsee
                  • 6. Re: OHS not able to redirect to two different ports of the same managed server
                    928140
                    one more important thing here is:

                    when I use without 'M1' ie

                    "http://<ohs_server>:7777/YpsSupplyPlanningEngineService/supplyPlanningEngineService"

                    for the below configured mod_wl_ohs

                    <Location /YpsSupplyPlanningEngineService/supplyPlanningEngineService>
                    SetHandler weblogic-handler
                    WebLogicHost host1.example.com.com
                    WebLogicPort 8001
                    </Location>

                    This case is working but this is of no use to me as i want to link manager servers using OHS.

                    Edited by: 925137 on Jul 6, 2012 4:24 AM

                    Edited by: 925137 on Jul 6, 2012 4:25 AM
                    • 7. Re: OHS not able to redirect to two different ports of the same managed server
                      947021
                      Hi Santosh,

                      For this requirement, I do not have any efficient solution. But, I have a workaround that you can try:

                      Add three location directives in the WebServer as shown below:

                      <Location /M1/YpsSupplyPlanningEngineService/supplyPlanningEngineService>
                      SetHandler weblogic-handler
                      PathTrim /M1
                      WebLogicHost host1.example.com
                      WebLogicPort 8001
                      </Location>

                      <Location /M2/YpsSupplyPlanningEngineService/supplyPlanningEngineService>
                      SetHandler weblogic-handler
                      PathTrim /M2
                      WebLogicHost host1.example.com
                      WebLogicPort 8003
                      </Location>

                      <Location /YpsSupplyPlanningEngineService/supplyPlanningEngineService>
                      SetHandler weblogic-handler
                      WebLogicCluster host1.example.com:8001,host1.example.com:8003
                      Idempotent OFF
                      </Location>

                      I am suggesting this keeping in mind your requirement of redirecting the requests to a particular managed server only.
                      With the above configuration, the following should happen:
                      On first time the client accessing the application OR at anytime if the URL contains M1 like /M1/YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL the request will go to M1
                      AND the following requests if they do not contain M1 like /YpsSupplyPlanningEngineService/supplyPlanningEngineService?WSDL=/META-INF/wsdl/ServiceException.wsdl the request will still go to M1 (the same server as where the first request was accessed). This would be possible due to the JVMID in JSessionID related to the session stickyness concept.


                      Regards,
                      Anon