OHS forwarding page request to WebLogic

I have WebLogic v10.3.3.0 installed and up and running with Clustering. It has two managed servers, and each managed server is set up with SSL. I have an application deployed to the two managed servers and can bring up the application if typing in the URL to the application server directly via URLs like:
https://nn.nn.nnn.nnn:7003/englink/login.seam (non-ssl on MS1)
https://nn.nn.nnn.nnn:7004/englink/login.seam (ssl on MS1)
https://nn.nn.nnn.nnn:7005/englink/login.seam (non-ssl on MS2)
https://nn.nn.nnn.nnn:7006/englink/login.seam (ssl on MS2)
I also have OHS installed and up and running. I am trying to get it to redirect to the WebLogic server. Right now I get this error in the mod_wl_ohs.log on the Oracle HTTP server log:
Sun May 13 23:49:09 2012 <2667113369550681> INFO: Closing SSL context
Sun May 13 23:49:09 2012 <2671213369673416> Sleeping for 2 seconds
Sun May 13 23:49:11 2012 <2671213369673416> attempt #5 out of a max of 5
Sun May 13 23:49:11 2012 <2671213369673416> Trying a pooled connection for 'nn.nn.nnn.nnn/7002/7002'
Sun May 13 23:49:11 2012 <2671213369673416> getPooledConn: found a host and port/securePort match
Sun May 13 23:49:11 2012 <2671213369673416> getPooledConn: No more connections in the pool for Host[nn.nn.nnn.nnn] Port[7002] SecurePort[7002]
Sun May 13 23:49:11 2012 <2671213369673416> general list: trying connect to 'nn.nn.nnn.nnn'/7002/7002 at line 3188 for '/console'
Sun May 13 23:49:11 2012 <2671213369673416> Connect failed: 111
Sun May 13 23:49:11 2012 <2671213369673416> *******Exception type [NO_RESOURCES] (apr_socket_connect call failed ) raised at line 1918 of ../nsapi/URL.cpp
Another thing I want to point out is if I modify the mod_wl_ohs.conf file to turn off WLProxySSL to OFF and SecureProxy to OFF and change all the secure ports
to the unsecure ports, then restart all the OHS processes that the OHS server forwards the request just fine when I want to hit the application by HTTP...
Edited by: we**** on May 14, 2012 10:23 AM
Edited by: we**** on May 14, 2012 10:26 AM

we**** wrote:
Sun May 13 23:49:11 2012 <2671213369673416> Trying a pooled connection for 'nn.nn.nnn.nnn/7002/7002'Re-check your config. It appears you have mis-configured the host and port entries for your weblogic server. The port number shouldn't be repeated.

Similar Messages

  • Logging of Forwarded HTTP Requests using RequestDispatcher in Weblogic

    Can anyone help me on this?
    Logging of Forwarded HTTP Requests using RequestDispatcher in Weblogic
    Access Log File:
    1. I have a servlet(S1) which decides which JSP to be published based on
    some logic. If I try to forward the request from a servlet to a JSP or to
    another servlet from within S1 using RequestDispatcher, it doesn't get
    logged in the access log, only the initial request to S1 gets logged, when I
    switch on HTTP logging by setting weblogic.httpd.enableLogFile to true. Is
    there any way of logging this forwarding of request in the access log?
    2. If there is no solution for (1), I woiuld like to make entries into the
    access log file of weblogic in the common log format, when I forward a
    request to a JSP or a servlet throught the RequestDispatcher, so that I can
    use standard tools to analyze the logfile.The two issues with this are (i)
    is there any weblogic service that gives a handle to the access log file
    like the LogServicesDef which gives a handle to the weblogic log file. (ii)
    Is there any utility class available that can format a URL pointing to a JSP
    to a string confirming to the common log format.

    The log4j:ERROR messages are not coming from Log4j 2 and are most likely from Log4j 1.x. Somehow Log4j 1.x must be getting the log4j2 configuration.

  • Javax.servlet.forward.request_uri request attribute

    Hi,
    I have declared a security-constraint on my web application, which redirects to a page with a form.
    I want to know the initial request. It usually can be retrieved in the javax.servlet.forward.request_uri request attribute, so by doing
    request.getAttribute("javax.servlet.forward.request_uri")
    But this always returns me null.
    If I test the same thing on Tomcat, it works fine.
    This attribute come with Servlet 2.4, and Weblogic 11g is JEE 5 compliant (so Servlet 2.5). So it should work.
    Is there a particularity for Weblogic ?
    Regards

    >
    This attribute come with Servlet 2.4, and Weblogic 11g is JEE 5 compliant (so Servlet 2.5). So it should work.
    Is there a particularity for Weblogic ?This attribute does exist and has to be filled when a forward is done. However there's no strict requirement that the j_security_check is handled internally by a forward. If it's not, then that request attribute wouldn't come into play.
    I've never used it, so caveat emptor, but there is a public class we have which does appear to have some methods that may be helpful to you.
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13941/weblogic/servlet/security/ServletAuthentication.html
    ServletAuthentication allows both form-based authentication and programmatic authentication in servlets. It performs the authentication call through the Realm and sets the user information into the session.And the static getTargetURLFromFormAuthentication method:
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13941/weblogic/servlet/security/ServletAuthentication.html#getTargetURLForFormAuthentication(HttpSession)
    -steve-

  • How to get JSP to forward a request over SSL?

    I'm new to JSP and servlets, although I've been working with Java for a long time. I'm trying to write a simple user registration and login system to teach myself JSP. I would like to set things up so that the user is able to login securely over https. I'm not sure how to do that, though. There seems to be no place in the relative URLs to indicate that you should be forwarding a request over SSL. I've got sample login page below - would anyone know how to modify it so that it happens securely?
    Also, do I need to install a certificate on my web server?
    index.jsp
    <html>
        <body>
            <h1>Index</h1>
            <a href="login.jsp">Login</a>
        </body>
    </html>login.jsp
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <body>
            <h1>Login</h1>
            <jsp:useBean id="userLogin"
                         class="com.kitfox.webrpg.UserLogin"/>
            <jsp:setProperty name="userLogin"
                             property="*"/>
            <%if (userLogin.isValid()) {%>
            <jsp:useBean id="userId"
                         class="com.kitfox.webrpg.UserIdent"
                         scope="session"/>
            <jsp:setProperty name="userId" property="*"/>
            <jsp:forward page="index.jsp"/>
            <%} else {%>
            <form action="login.jsp" method="post">
                <fieldset>
                    <legend>Enter login information</legend>
                    <label for="login">Login</label>
                    <input type="text" name="login" value="${userLogin.login}"/> <br/>
                    <label for="password">Password</label>
                    <input type="password" name="password"/> <br/>
                    <input type="submit" value="submit">
                </fieldset>
            </form>
            <%}%>
        </body>
    </html>

    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Secure Login</web-resource-name>
    <url-pattern>/login.jsp</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    This code is used basically for different authentication type . Forward to any jsp under any layer works with <jsp:forward> or else try with request.getRequestDispatcher(" url (can be absolute or accurate path)").forward(request,response);
    Edited by: user8483670 on Mar 13, 2011 9:46 PM

  • How to forward the request

    hi all,
    can somebody tell me how to forward the request from one context to another.
    thanks in adv.
    ritu

    Ritu, when you are talking about a different context are you talking about application, session and page contexts?? If yes, then I don't think you can forward a request to another context!
    If you are after a context (bean) from within your servlet, have you tried:
    mycontext = (MyContextClass)getServletContext().getAttribute("thenameofmycontext");HTH.

  • Forward the request to a window with specific parameters

    page0.asp->page1.jsp
    When the user click submit button in page0.asp, it will post the form
    request to page1.jsp.
    page0.asp and page1.jsp are in separate machines. In page1.jsp, based
    on the parameter
    interfaceName, it will forward to different jsp pages. However, we want
    to forward the request
    to a window with parameter like the following, without the menu bar and
    toolbar.
    The question is how to forward the request to a window like that?
    window.open("test2.jsp",null,
    "height=500,width=500,status=yes,toolbar=no,menubar=no,location=no");
    //page1.jsp
    <%
    String interfaceName = request.getParameter("interfaceName");
    if (interfaceName != null)
    {        if (interfaceName.equalsIgnoreCase("id1"))
    url="/id1.jsp";
    else if (interfaceName.equalsIgnoreCase("id2"))
    url="/id2.jsp";
    else if (interfaceName.equalsIgnoreCase("id3"))
    url="/id3.jsp";
    //etc...
    request.getRequestDispatcher(url).forward(request,response);
    %>
    Please help and advise. thanks!!

    The server cannot decide where to send its response to. It can only send
    it to where the request came from.More specifically... to the server, the browser itself makes the request. Where the browser wants to put the response is entirely up to the browser.
    Unfortunately, you can't really use ECMAScript (JavaScript) after the response is returned to redirect it. I suppose you could copy the DOM contents of the response page into another frame's document or something, but that's just ugly.
    and don't cross-post...

  • Simple forward page problem

    Hi all,
    I have simple forward page , only jump to else part can any one please told me why?
    Thank you
        <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Empet Check</title>
    </head>
    <body>
    <%
       String name = request.getParameter("String");
       if (name != null){
       %>
          name is not null
         <jsp:forward page="ViruList1.jsp"/>
        <% }else { %>
    <jsp:forward page="Home.html"/>
    <% } %>
    </body>
    </html>
    <form name="formName" action="forward.jsp" method="post" >
    <input type="text" name="string" size="20">                               
                         <input type="submit" name="submit" value="Go"></td>

    got it

  • Forward a request from a filter

    Hi,
    I want to be able to access a page
    www.whatever.com/page.jsp?username=me&content=something
    with the url
    www.whatever.com/user/something
    I am thinking doing it with a filter that parses out 'user' and 'something' in the second url and forward the request to the first url. What's a way to forward a url in a filter, yet the other filters in the web app still executes?
    I have tried using the RequestDispatcher, however after the dispatcher I can not run the other filters or I will get illegleState exception. Any sugguestions? Thanks.

    From SRV.11.2 in the servlet spec:
    SRV.11.2 Specification of Mappings
    In theWeb application deployment descriptor, the following syntax is used to define mappings:
    " A string beginning with a / character and ending with a /* suffix is used for path mapping.
    " A string beginning with a *. prefix is used as an extension mapping.
    " A string containing only the / character indicates the "default" servlet of the application. In this case the servlet path is the request URI minus the context path and the path info is null.
    " All other strings are used for exact matches only.
    Filter mappings work the same way.
    The wildcards do not work the same way that they do in regular expressions.
    What you might want to do is use a mapping of *.do and then use a regular expression within your filter to decide which URL to act on and which to let pass untouched.

  • Plz Help to forward pages

    Hello Techies,
    I m New to JSP . I need to forward pages according to the if condition. I worked out the code as
    <%@ page language="java" %>
    <%@ page session="true" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.sql.*" %>
    <html>
    <body>
    <%
    Connection con=null;
    String str1=request.getParameter("user");
    String str2=request.getParameter("password");
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:Login","sa","");
    Statement stmt=con.createStatement();
    ResultSet rs=stmt.executeQuery("select * from Login");
    while(rs.next())
    String str3=rs.getString(1);
    String str4=rs.getString(2);
    if(str1==str3)
    out.println("Connection Succeded");
    %>
    <jsp:forward page="try.jsp" />
    <%
    break;
    %>
    <TABLE border=2>
    <%
    while(rs.next())
    %>
    <TR>
    <TD><%=rs.getString(1) %></TD>
    <TD><%=rs.getString(2) %></TD>
    </TR>
    <%
    %>
    </TABLE>
    <%-- <jsp:forward page="First.jsp"/> --%>
    <%
    catch(Exception d)
    out.println(d.getMessage());
    %>
    </body>
    </html>
    Here i m have created DSN namely Login and i m also having respected datas in database. It work fine showing me the results but it is not forwarding to the First.jsp file. I m having that file in the same folder
    Here i m using Tomcat web container 4.1. Plz give me a suggestion. All suggestions are welcomed.
    Thanks in advance
    Aski
    [email protected]

    <%
    Connection con=null;
    String str1=request.getParameter("user");
    String str2=request.getParameter("password");
    try {
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        con=DriverManager.getConnection("jdbc:odbc:Login","sa","");
        Statement stmt=con.createStatement();
        ResultSet rs=stmt.executeQuery("select * from Login");
        while(rs.next()) {
            String str3=rs.getString(1);
            String str4=rs.getString(2);
            // need --> if(str1.equals(str3) {
            if(str1==str3) {
                out.println("Connection Succeded");
    %>
            <jsp:forward page="try.jsp" />
    <%
            break;
    %>
    <TABLE border=2>
        <%
        while(rs.next()) {
        %>
        <TR>
            <TD><%=rs.getString(1) %></TD>
            <TD><%=rs.getString(2) %></TD>
        </TR>
        <%
    %>
    </TABLE>
    <%-- <jsp:forward page="First.jsp"/> --%>
    <%
    } catch(Exception d) {
        out.println(d.getMessage());
    %>also i think it may be skipping to exception is it ?
    beacuse you calling
            <TD><%=rs.getString(1) %></TD>
            <TD><%=rs.getString(2) %></TD>after you called rs.getString(1) & (2) earlier, try grabbing a reference to them outside of try instantiate them on first call and reuse that reference for the second time you want
    them
    like
    <%
    Connection con=null;
    String str1=request.getParameter("user");
    String str2=request.getParameter("password");
    String _str3 = null;
    String _str4 = null;
    try {
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        con=DriverManager.getConnection("jdbc:odbc:Login","sa","");
        Statement stmt=con.createStatement();
        ResultSet rs=stmt.executeQuery("select * from Login");
        while(rs.next()) {
            _str3=rs.getString(1);
            _str4=rs.getString(2);
            // need --> if(str1.equals(str3) {
            if(str1==str3) {
                out.println("Connection Succeded");
    %>
            <jsp:forward page="try.jsp" />
    <%
            break;
    %>
    <TABLE border=2>
        <%
        while(rs.next()) {
        %>
        <TR>
            <TD><%= _str3 %></TD>
            <TD><%= _str4 %></TD>
        </TR>
        <%
    %>
    </TABLE>
    <%-- <jsp:forward page="First.jsp"/> --%>
    <%
    } catch(Exception d) {
        out.println(d.getMessage());
    %>hth
    g00fy

  • IllegalStateException when forwarding a request

    I am getting the following exception
              java.lang.IllegalStateException: Cannot forward a response that is
              already commi
              tted
              when I try to forward a request from one JSP page to another. The code
              at which which the error occurs is
              context.getRequestDispatcher("/resource/resourceView.jsp").forward(request,response);
              --Vishal
              

    Try this
              config.getServletContext().getRequestDispatcher("("/resource/resourceView.js
              p").forward(request, response);
              La
              Saravanakumar wrote in message <8is81g$fud$[email protected]>...
              >If the JSP page output is buffered (by using a page directive with the
              >default value or an explicit size set for buffer), the buffer is cleared
              >before the request is forwarded. If the page output is not buffered (by
              >using a page directive with buffer=none), and if anything has been written
              >to the buffer, an attempt to forward the request results in an
              >IllegalStateException.
              >
              >
              >Vishal Vishnoi <[email protected]> wrote in message
              >news:[email protected]..
              >> I am getting the following exception
              >>
              >> -------------------------------------------------------------------------
              >-----------
              >>
              >> java.lang.IllegalStateException: Cannot forward a response that is
              >> already commi
              >> tted
              >> -------------------------------------------------------------------------
              >-----------
              >>
              >> when I try to forward a request from one JSP page to another. The code
              >> at which which the error occurs is
              >>
              >>
              >context.getRequestDispatcher("/resource/resourceView.jsp").forward(request,
              r
              >esponse);
              >>
              >> --Vishal
              >>
              >
              >
              

  • How to run and JSF page from Bea Weblogic 8.1

    Hi, I am new to JSF . Can anybody help me that how can i access a JSF page from Bea Weblogic 8.1. How can deploy. What libraries and files are needed and where to put these required .jar or library files. I just wrote a single page and now i am not able to run it . Any help would be highly appreciated.I am looking forward for your kind replies.Thank you.
    Regards,
    Waqar

    You need to package your application into the standard .war format. Make sure jsf-api.jar and jsf-impl.jar are placed in WEB-INF/lib, your faces-config.xml is in WEB-INF, and your tld files are defined appropriately. Once you have your .war file, deploy it to your servers applications directory or use the console for deployment.
    You should not have any problems if everything is packaged correctly. I am successfully using WebLogic Server 8.1 with my JSF-based web app.

  • Page request to non-BC domain after customer purchases

    I need to send 2 variables to a non-BC domain through a page call or page request that automatically occurs after a customer purchases a product from our BC site.

    you can't pass the user/password to the next application on the URL
    line due to security, but you do have to pass it, correct? so you
    want to pass by POST to the external site? you can do that, but of
    course it is not much more secure.
    you should be able to return an outcome that sends the user to a jsf
    view page that just outputs a normal plain html form that auto-submits
    to the external page, with data elements populated from the managed
    bean:
    e.g.:
    <html>
        <f:view>
            <head>
            </head>
            <body onload="document.getElementById('externalForm').submit();">
            <form id="externalForm" action="http://outsideOfMyWebDomain:1111/login.form" method="post">
                <input type='hidden' name='userName' value='<h:outputText value="#{myBean.computedUserName}"/>'>
                <input type='hidden' name='passWord' value='<h:outputText value="#{myBean.computedPassWord}"/>'>
            </form>
            </body>
        </f:view>
    </html>There should be no problems mixing the "plain" html in with the jsf
    tags. It's only when you are inside the special output tags like
    "<h:dataTable>" where you can't just put plain html anywhere you
    want.
    If you don't want to do that, you can directly write the above html
    from the managed bean to the output stream and mark the response as
    complete and get the auto-forward that way.

  • How can i forward a request one jsp to another jsp?

    as per my knowledge
    using jsp action tags that forward and include
    and first loaded the ServletContext objects and retriving that context objects...
    so i want one more any otherway can u help me?

    sreeman wrote:
    as per my knowledge
    using jsp action tags that forward and includeThe <jsp:forward> indeed forwards the request. The <jsp:include> doesn't.
    and first loaded the ServletContext objects and retriving that context objects...I don't get you?
    so i want one more any otherway can u help me?Why do you want that?
    There is a dedicated subforum for JSP and Servlets. For future JSP or Servlet related questions please make use of it.
    JSP and JSTL: http://forum.java.sun.com/forum.jspa?forumID=45
    Servlets: http://forum.java.sun.com/forum.jspa?forumID=33

  • How can I forward a request from to another servlet?

    If I would like to forward a request from a servlet to another one, but they are not located in the same machine.
    Could I use the following code to do it?
    getServletConfig().getServletContext().getRequestDispatcher("XXXXX").forward(request, response);

    You can not do a forward to a servlet on a different server. You can do a redirect and put any parameters you want to pass in the url. If you are using JSP you may bve able to use the JSTL include tag, again passing the parameters in the URL. You could use the URLConnection or HttpURLConnection class to open a connection to the servlet, make a request, get the response and the return the response to the client.

  • Sys.webforms.page request manager server error exception:An unknown error occured while processing the request on server. The status code returned from the server was:0

    sys.webforms.page request manager server error exception:An unknown error occured while processing the request on server. The status code returned from the server was:0 We got this response(In firebug console) when we try to click on link (after leave webpage for 3 minuts ideal) which is AJAX based. Please reply ASAP because its urgent.

    Hi SP,
    Please check if the following web config appSettins value settings from SSRS server could fix the issue (Note, back up your original web config file before any modification).
    http://stackoverflow.com/questions/10911610/ssrs-webpage-error-status-code-500
    http://srinivasbn.blogspot.in/2013/09/syswebformspagerequestmanagerservererro.html
    http://connect.microsoft.com/SQLServer/feedback/details/782155/ssrs-2012-failed-with-win32-error-0x03e3
    If you have more questions about the SSRS error logs related to this issue, you can post in the SSRS forum for a better assistance with more experts.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • Pcmanfm 0.9.7 incorrect partition size? [SOLVED]

    In PCManFM, the size of my hard drive is reported incorrectly.  If I open gparted and look at /dev/sdb, the usable size is 186 Gb out of 200 Gb, due to manufacturing tolerance, yadda yadda; however, PCManFM reports it having 199.9 Gb free.  Should I

  • Dynamic SQL Joining between tables and Primary keys being configured within master tables

    Team , Thanks for your help in advance ! I'm looking out to code a dynamic SQL which should refer Master tables for table names and Primary keys and then Join for insertion into target tables . EG: INSERT INTO HUB.dbo.lp_order SELECT * FROM del.dbo.l

  • Idocs and rfcs not found!!

    Hi, Check whether you can find these Idocs in the R/3 System if you goto the tcode we05/we07 and try to check whether this idoc has already been executed, and also try to import those idocs in the SWCV. I could not find the RFC name which u have ment

  • PDF error with GhostScript

    I used GhostScript (GS) to merge 2 PDF files generated by Oracle Reprots 9i and got the following warning/error: **** This file has a corrupted %%EOF marker, or garbage after the %%EOF. **** The file was produced by Oracle PDF driver: **** please not

  • Maximum number of free accounts have been activated on this iphone

    hi i am getting an error while connecting to icloud on my new iphone 4 Error :" The maximum number of free accounts have been activated on this iphone " plz help me with a solution