4 Replies Latest reply: Apr 25, 2012 2:20 AM by Arunbodap-Oracle RSS

    Weblogic, apache plugin and REST URL

    676878
      Hi,
      i have a REST request like the one below that invoke a servlet responding on "service_name":
      http://host/app_context/service_name/uPlg42sw3koG8AArtwUI6XprAwus%2FKzj22rsoBPW%2BbWjIVpFS2YLATk20d322p53hh5Lv4%3D
      When I request this URL directly on WLS, all is working well, but when I put an Apache in front of the WLS i get a "Not Found" exception (only for that URL).
      This is the httpd.conf part:
      <Location /app_context>
      SetHandler weblogic-handler
      WebLogicHost x.x.x.x
      WebLogicPort 7005
      WLTempDir /tmp/wl_tmp
      WLLogFile /tmp/wl_console.log
      </Location>
      There is some directive allowing the URL to pass through Apache to the WLS?
      Thank you
        • 1. Re: Weblogic, apache plugin and REST URL
          676878
          Maybe the %2F is the cause of that problem? Is there a way to manage that encoded character in the URL?
          Thank you
          • 2. Re: Weblogic, apache plugin and REST URL
            Arunbodap-Oracle
            Try setting the "QueryFromRequest" in Apache plug-in to "ON"
            This setting will tell Apache to pass the query string to WebLogic Server.

            Check the below documentation for further details:
            http://docs.oracle.com/cd/E23943_01/web.1111/e14395/plugin_params.htm#CIHFFGEB

            Also set the Debug to ALL and copy paste a single request log if possible

            For example,
            <Location /app_context>
            SetHandler weblogic-handler
            WebLogicHost x.x.x.x
            WebLogicPort 7005
            Debug ALL
            WLTempDir /tmp/wl_tmp
            WLLogFile /tmp/wl_console.log
            QueryFromRequest ON
            </Location>


            Arun

            Edited by: ArunBodap on Apr 23, 2012 4:15 AM
            • 3. Re: Weblogic, apache plugin and REST URL
              676878
              Thank you for your prompt reply!
              I activated the debug ALL and the QueryFromRequest but nothing change.
              If I request the previous URL, nothing is traced on wl_console.log, maybe because apache can't bound the URL to that Location specification. I tried the URL string without the "%2F" and Apache is able to correctly interpret the URL and redirect the request to WLS, but I'm not able to garantee the absence of such this character in my URL string...
              • 4. Re: Weblogic, apache plugin and REST URL
                Arunbodap-Oracle
                In that case, this could be an issue with the Apache HTTP server itself.
                Please check if setting "AllowEncodedSlashes" to "On" would help.
                http://httpd.apache.org/docs/2.2/mod/core.html#allowencodedslashes


                Arun