Forum Stats

  • 3,874,589 Users
  • 2,266,749 Discussions
  • 7,911,905 Comments

Discussions

sendRedirect method of Java ServletRequest class breaks flow on using Oracle HTTP Server

User_5S8PO
User_5S8PO Member Posts: 3 Employee
edited Jun 27, 2022 11:35AM in Java Servlet

Hi All,

We have 2 war files deployed on standalone JVM in Weblogic 12.2.1.3 and request is routed using ProxyPass module on Apache 2.4.33.

Application 1 with context root (NAS) uses sendRedirect method in servlet to access module in Application 2 with context root(PTS) which is also deployed on the same JVM & port.

The application module is accessible & works fine when Apache HTTP server is used as proxy on Oracle Weblogic Server.

The same application module fails with Page not found error when Oracle HTTP Server is used as proxy server. (Application fails with mod_wl plugin & ProxyPass). Weblogic plugin is enabled on Weblogic.

sendRedirect method route request back to client browser. Can we use RequestDispacther method to route request to other servlet deployed in seperate war file but on the same server.

Any pointers or examples to achieve the same would be helpful.

Comments

  • User_5S8PO
    User_5S8PO Member Posts: 3 Employee

    Hi All,

    We have 2 war files deployed on standalone JVM in Weblogic 12.2.1.3 and request is routed using ProxyPass module on Apache 2.4.33. 

    Application 1 with context root (NAS) uses sendRedirect method in servlet to access module in Application 2 with context root(PTS) which is also deployed on the same weblogic JVM & port.

    LoadBalancer -> Apache (Standalone) mod_proxy -> Weblogic (Standalone)

    The application module is accessible & works fine when Apache HTTP server is used as proxy on Oracle Weblogic Server.

    The same application module fails with Page not found error when Oracle HTTP Server is used as proxy server. (Application fails with mod_wl plugin & ProxyPass). Weblogic plugin is enabled on Weblogic. NAS is the application which uses sendRedirect method to call module in (PTS) war file deployed on same weblogic JVM & PORT.

    LoadBalancer -> OHS (Standalone) mod_proxy -> Weblogic (Standalone)

    LoadBalancer -> OHS (Standalone) mod_wl -> Weblogic (Standalone)

    NAS application is accesible with Loadbalancer URL (nasonline.asm.com) which is working fine when tested with both plugins. PTS module is clicked on NAS application page when the sendRedirect code is initiated and that request fails with page not found error with weblogic IP & port displayed on the client browser.

    Appreciate any assistance or help on the issue.