2 Replies Latest reply: Sep 8, 2013 12:34 AM by user7245827 RSS

    Https webservcie call redirection from Apache2 to weblogic throws error

    user7245827

      Dear Sir,

       

      I have prob in invoking webservice deployed on WLS 10.3.4 through Apache2 server.

      Below is setup on httpd-ssl.conf file in apache machine.

       

       

      <VirtualHost 10.xx.xx.18:443>

      ....

      <IfModule weblogic_module>

            WebLogicCluster 10.xx.xx.30:8013

            Debug ON

            WLProxySSL OFF

            DynamicServerList ON

            WLLogFile /tmp/weblogic_ssl.log

            WLTempDir /tmp

            WLIOTimeoutSecs 1800

            DebugConfigInfo ON

         </IfModule>

       

         <Location /TestApp>

           SetHandler weblogic-handler

         </Location>

        <Location /TestWebService>

           SetHandler weblogic-handler

         </Location>

       

       

      </VirtualHost>

      ProxyPreserveHost On

      ProxyRequests Off

      SSLProxyEngine On

       

       

      The web app (TestApp) is working fine when invoking https protocol.

      But for the web service(TestWebService) when invoking using https protocol, it throws the below error:

       

      AxisFault

      faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server

      faultSubcode:

      faultString: weblogic.wsee.server.ServerURLNotFoundException: Cannot resolve URL for protocol http/https

       

      faultActor:

      faultNode:

      faultDetail:

              {java.io}string:java.lang.RuntimeException: weblogic.wsee.server.ServerURLNotFoundException: Cannot resolve URL for protocol http/https

      weblogic.wsee.server.ServerURLNotFoundException: Cannot resolve URL for protocol http/https

      weblogic.wsee.server.ServerURLNotFoundException: Cannot resolve URL for protocol http/https

              at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)

              at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)

              at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

              at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2938)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)

              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)

              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)

              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

              at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)

              at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)

              at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)

              at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)

              at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

              at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

              at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)

              at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

              at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

              at org.apache.axis.client.Call.invokeEngine(Call.java:2765)

              at org.apache.axis.client.Call.invoke(Call.java:2748)

              at org.apache.axis.client.Call.invoke(Call.java:2424)

              at org.apache.axis.client.Call.invoke(Call.java:2347)

              at org.apache.axis.client.Call.invoke(Call.java:1804)

       

      When we access the WSDL url using the https protocol, it returns the wsdl xml properly. Only invoking the method on the webservice throws the error.

      Below is the error log from the apache for ssl request.

       

      ================New Request: [POST /TestWebService/TestService HTTP/1.0] =================

      Tue Aug 27 10:11:42 2013 <655913775839021> INFO: SSL is not configured

      Tue Aug 27 10:11:42 2013 <655913775839021> Using Uri /TestWebService/TestService

      Tue Aug 27 10:11:42 2013 <655913775839021> After trimming path: 'TestWebService/TestService'

      Tue Aug 27 10:11:42 2013 <655913775839021> The final request string is 'TestWebService/TestService'

      Tue Aug 27 10:11:42 2013 <655913775839021> Host extracted from serverlist is [10.xx.x.30]

      Tue Aug 27 10:11:42 2013 <655913775839021> Initializing lastIndex=0 for a list of length=1

      Tue Aug 27 10:11:42 2013 <655913775839021> getListNode: created a new server node: id='10.xx.x.30:8013' server_name='10.xx.xx.18', port='443'

      Tue Aug 27 10:11:42 2013 <655913775839021> Going to get the post data of size=388 clength=0

      Tue Aug 27 10:11:42 2013 <655913775839021> attempt #0 out of a max of 5

      Tue Aug 27 10:11:42 2013 <655913775839021> Trying a pooled connection for '10.xx.xx.30/8013/8013'

      Tue Aug 27 10:11:42 2013 <655913775839021> getPooledConn: No more connections in the pool for Host[10.xx.xx.30] Port[8013] SecurePort[8013]

      Tue Aug 27 10:11:42 2013 <655913775839021> general list: trying connect to '10.xx.xx.30'/8013/8013 at line 2724 for 'TestWebService/TestService'

      Tue Aug 27 10:11:42 2013 <655913775839021> INFO: New NON-SSL URL

      Tue Aug 27 10:11:42 2013 <655913775839021> Connect returns -1, and error no set to 150, msg 'Operation now in progress'

      Tue Aug 27 10:11:42 2013 <655913775839021> EINPROGRESS in connect() - selecting

      Tue Aug 27 10:11:42 2013 <655913775839021> Local Port of the socket is 37994

      Tue Aug 27 10:11:42 2013 <655913775839021> Remote Host 10.xx.xx.30 Remote Port 8013

      Tue Aug 27 10:11:42 2013 <655913775839021> general list: created a new connection to '10.xx.xx.30'/8013 for 'TestWebService/TestService', Local port:37994

      Tue Aug 27 10:11:42 2013 <655913775839021> URL::parseHeaders: CompleteStatusLine set to [HTTP/1.1 500 Internal Server Error]

      Tue Aug 27 10:11:42 2013 <655913775839021> URL::parseHeaders: StatusLine set to [500 Internal Server Error]

      Tue Aug 27 10:11:42 2013 <655913775839021> parsed all headers OK

      Tue Aug 27 10:11:42 2013 <655913775839021> sendResponse() : r->status = '500'

      Tue Aug 27 10:11:42 2013 <655913775839021> Free old srvrList, id=[10.xx.xx.30:8013], server_name=[10.xx.xx.18], server_port=[443]

      Tue Aug 27 10:11:42 2013 <655913775839021> Parsing cluster list: -2116126659!174266130!7003!-1|1098407374!174266142!7013!-1

      Tue Aug 27 10:11:42 2013 <655913775839021> parseJVMID: Parsing JVMID '-2116126659!174266130!7003!-1|1098407374!174266142!7013!-1'

      Tue Aug 27 10:11:42 2013 <655913775839021> parseJVMID: Actually parsing '-2116126659!174266130!7003!-1'

      Tue Aug 27 10:11:42 2013 <655913775839021> ServerInfo struct for JVMID '-2116126659' populated

      Server Details are:

      OrigHostInfo [10.99.23.18]

      isOrigHostInfoDNS [0]

      Host [10.99.23.18]

      Port [7003]

      SecurePort [0]

      Tue Aug 27 10:11:42 2013 <655913775839021> parseJVMID: Parsing JVMID '1098407374!174266142!7013!-1'

      Tue Aug 27 10:11:42 2013 <655913775839021> parseJVMID: Actually parsing '1098407374!174266142!7013!-1'

      Tue Aug 27 10:11:42 2013 <655913775839021> ServerInfo struct for JVMID '1098407374' populated

      Server Details are:

      OrigHostInfo [10.99.23.30]

      isOrigHostInfoDNS [0]

      Host [10.99.23.30]

      Port [7013]

      SecurePort [0]

      Tue Aug 27 10:11:42 2013 <655913775839021> Initializing lastIndex=0 for a list of length=2

      Tue Aug 27 10:11:42 2013 <655913775839021> ### Got a new Server List of length 2 ###

      Tue Aug 27 10:11:42 2013 <655913775839021> ###Response### : Srvr# [1] = [10.99.23.18:7003:0]

      Tue Aug 27 10:11:42 2013 <655913775839021> ###Response### : Srvr# [2] = [10.99.23.30:7013:0]

      Tue Aug 27 10:11:42 2013 <655913775839021> canRecycle: conn=1 status=500 isKA=0 clen=-1 isCTE=0

      Tue Aug 27 10:11:42 2013 <655913775839021> closeConn: URL.canRecycle() returns false, deleting URL '10.xx.xx.30/8013'

      Tue Aug 27 10:11:42 2013 <655913775839021> request [TestWebService/TestService] processed

       

      Kindly help me to resolve this issue,

       

      zia