Forum Stats

  • 3,874,294 Users
  • 2,266,718 Discussions
  • 7,911,803 Comments

Discussions

Problems with HttpClusterServlet of Weblogic

667791
667791 Member Posts: 3
edited Nov 14, 2008 3:09PM in WebLogic Portal
Hi, I have a problem with the servlet HttpClusterServlet, I want that the application proxy redirects the request to the web application that is in a node, but it does not work.

thanks.

Answers

  • 669362
    669362 Member Posts: 80
    Hi,

    could you provide some details plz (logs, stack trace...)

    Emmanuel
  • 667791
    667791 Member Posts: 3
    edited Nov 14, 2008 3:09PM
    Hi, thanks for your response!

    When I run the app, the HttpClusterServlet(application proxy) redirects me to the app that is in the node.

    Here is my proxy configuration:

    =============================================
    <web-app>
    <servlet>
    <servlet-name>HttpClusterServlet</servlet-name>
    <servlet-class>
    weblogic.servlet.proxy.HttpClusterServlet
    </servlet-class>
    <init-param>
    <param-name>WebLogicCluster</param-name>
    <param-value>NODE_IP:PORT</param-value>
    </init-param>
    <init-param>
    <param-name>Debug</param-name>
    <param-value>ON</param-value>
    </init-param>
    <init-param>
    <param-name>DebugConfigInfo</param-name>
    <param-value>ON</param-value>
    </init-param>




    </servlet>
    <servlet-mapping>
    <servlet-name>HttpClusterServlet</servlet-name>
    <url-pattern>/</url-pattern>
    </servlet-mapping>



    </web-app>

    the weblogic.xml configuration of the proxy app

    <weblogic-web-app>
    <context-root>/</context-root>
    </weblogic-web-app>


    =============================================

    And here I paste the stacktrace for exception thrown by the node and not from proxy:


    ================================================






    &lt;14-nov-2008 16H55' CLST&gt; &lt;Error&gt; &lt;WebLogicServer&gt; &lt;BEA-000337&gt; &lt;STUCK ExecuteThread: '387' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "680" seconds working on the request "Http Request: /", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    Thread-571 "STUCK ExecuteThread: '387' for queue: 'weblogic.kernel.Default (self-tuning)'" &lt;alive, in native, suspended, priority=1, DAEMON&gt; {
    jrockit.net.SocketNativeIO.readBytesPinned(SocketNativeIO.java:???)
    jrockit.net.SocketNativeIO.socketRead(SocketNativeIO.java:25)
    java.net.SocketInputStream.socketRead0(SocketInputStream.java:???)
    java.net.SocketInputStream.read(SocketInputStream.java:107)
    java.io.BufferedInputStream.fill(BufferedInputStream.java:189)
    java.io.BufferedInputStream.read(BufferedInputStream.java:234)
    ^-- Holding lock: [email protected][thin lock|http://forums.oracle.com/forums/]
    java.io.DataInputStream.readLine(DataInputStream.java:462)
    weblogic.servlet.proxy.GenericProxyServlet.readStatus(GenericProxyServlet.java:741)
    weblogic.servlet.proxy.HttpClusterServlet.sendResponse(HttpClusterServlet.java:1421)
    weblogic.servlet.proxy.HttpClusterServlet.service(HttpClusterServlet.java:207)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:815)
    weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
    weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:107)
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:198)
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3365)
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:308)
    weblogic.security.service.SecurityManager.runAs(Unknown Source)
    weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2076)
    weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1998)
    weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1331)
    weblogic.work.ExecuteThread.execute(ExecuteThread.java:197)
    weblogic.work.ExecuteThread.run(ExecuteThread.java:164)


    =======================================================

    Edited by: user10489756 on 14-11-2008 12:06 PM
This discussion has been closed.